blob: 537ab32430e734c47c5d2a97821d0d03f6d11e01 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
//@ skip
var array = new Array(10000);
for (var i = 0; i < 100000; ++i)
array[i % array.length] = new Int8Array(new ArrayBuffer(1000));
for (var i = 0; i < array.length; ++i) {
if (array[i].length != 1000)
throw "Error: bad length: " + array[i].length;
if (array[i].buffer.byteLength != 1000)
throw "Error: bad buffer.byteLength: " + array[i].buffer.byteLength;
}