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