I have the following instruction in a JavaScript of mine. The script works perfectly in any browser.
where nsel is an integer greater than zero.
However if I run it in Prince I get the following error on that line of code:
Any idea why? I have the same error even if I write:
var prevItem = new Array(nsel).fill(null);
where nsel is an integer greater than zero.
However if I run it in Prince I get the following error on that line of code:
TypeError: value is not an object.
Any idea why? I have the same error even if I write:
var prevItem = new Array(nsel);
prevItem.fill(null);