blob: 974649dfa448f8d82d92ca273cceedf35c2b6374 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
"use strict";
function foo()
{
return 42;
}
function bar()
{
return foo();
}
function baz()
{
return bar() + 1;
}
noInline(foo);
noInline(baz);
(function() {
for (var i = 0; i < 10000000; ++i) {
var result = baz();
if (result != 43)
throw "Error: bad result: " + result;
}
})();