blob: c3b284a2053613f9972ff1366915eb7c35ff5355 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo() {
var result = 0;
for (var i = 0; i < 100; ++i)
result += f;
return result;
}
noInline(foo);
f = 42;
for (var i = 0; i < 10000; ++i) {
this["i" + i] = i;
var result = foo();
if (result != 42 * 100)
throw "Error: bad result: " + result;
}