blob: 48c4472e499f97aab2049ff72df383fb30d7f12c [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(a, b) {
return a + b;
}
function bar() {
return foo.apply(null, arguments);
}
function baz(a, b) {
return bar(a, b);
}
noInline(baz);
for (var i = 0; i < 1000000; ++i) {
var result = baz(1, 2);
if (result != 3)
throw "Error: bad result: " + result;
}