blob: 2b2317e3994dc83c65a3dd338b3b0cf1dd3dc3df [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
//@ skip
var result = 0;
var buffer = new ArrayBuffer(10);
var array1 = new Int32Array(buffer, 4, 1);
var array2 = new Uint32Array(10);
for (var i = 0; i < 1000000; ++i) {
result += array1.byteOffset;
result += array2.byteOffset;
}
if (result != 4000000)
throw "Error: wrong result: " + result;