I’m trying to import a set of coordinates from an external javascript.
I have to include about 78.740 elements in the constructor, but firefox just throws an error:
“too many constructor arguments”
Does anybody have any ideas?
This is my code:
function CreateArray() {
return new Array(
...
...
...
78.740 elements later
...
); }
Try array literal, it worked for me (tested with success for million items):