blob: c4645928af0d9ea3d8ab1e8a706ca02345ad8235 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
//@ skip
var array = new Array(100000);
for (var i = 0; i < 2000000; ++i)
array[i % array.length] = new Int32Array(9);
for (var i = 0; i < array.length; ++i) {
var subArray = array[i];
if (subArray.length != 9)
throw "Error: bad array length: " + subArray.length;
for (var j = 0; j < subArray.length; ++j) {
if (subArray[j] != 0)
throw "Error: array at " + i + " has non-zero element: " + Array.prototype.join.call(subArray, ",");
}
}