blob: 7da5ce3e2f5d7b108a70585d5d977302ec4ad4a5 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
var p = {f:true};
function foo(b, d) {
var c;
if (p.f)
c = b;
return d[Math.abs(c)];
}
var result = 0;
var array = [42, 43, 44];
for (var i = 0; i < 1000000; ++i)
result += foo(-(i % 3), array);
if (result != 42999999)
throw "Bad result: " + result;