Is there an item limit for large arrays in javascript
问题 Already read this Question but didn't come to an understandable answer. I have an array new Array(105119296) with a predefined size. Then after the array was defined I started a loop to fill each index with a value. This process normally runs in a webworker but crashes there as well as in the browser directly. After 11184811 iterations in Chrome Mac 50.0.2661.102 (64-bit) the execution crashes. The script below reproduces the situation. var len = 105119296; var arr = new Array(len); for(var i