blob: 355d7af1a8d4d5435eda067cb63a44e3283ac250 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(a, b) {
var result;
for (var i = 0; i < 10000; ++i)
result = a + b;
return result;
}
noInline(foo);
for (var i = 0; i < 500; ++i) {
var result = foo("hello ", "world!");
if (result != "hello world!")
throw "Error: bad result: " + result;
}