blob: 99996f3205658b2f3b6da2c544edcb82e36f954f [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 DataView(new ArrayBuffer(1000));
for (var i = 0; i < array.length; ++i) {
if (array[i].byteLength != 1000)
throw "Error: bad length: " + array[i].byteLength;
if (array[i].buffer.byteLength != 1000)
throw "Error: bad buffer.byteLength: " + array[i].buffer.byteLength;
}