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