blob: ca03a396daa7328025b1153355002d9e7753d8fd [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(o) {
return o.f;
}
var o = {f:42};
var result = 0;
for (var i = 0; i < 500; ++i) {
for (var j = 0; j < 10000; ++j)
result += foo(o);
o.g = 43;
}
if (result != 210000000)
throw "Bad result: " + result;