blob: 8651a9fdd55ff83df93de170597b0d6491d2d71c [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo() {
var array = [];
for (var i = 0; i < 1000; ++i)
array.push(i + 0.5);
var result = 0;
for (var i = 0; i < 1000; ++i) {
for (var j = 0; j < array.length; ++j)
result += array[j];
}
return result;
}
if (foo() != 500000000)
throw "ERROR";