blob: 104ea9eecbe3d7394a9f698d6718257cafd4c0f7 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
var foo = function foo(unlikely) {
if (unlikely)
return eval("0");
return 1;
}
noInline(foo);
function bar() {
var result = 0;
for (var i = 0; i < 1000000; ++i)
result += foo(false);
return result;
}
var result = bar();
if (result != 1000000)
throw "Error: bad result: " + result;