blob: bf11ac4816254eb0de054c5c4159a22cf1f7bedd [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(string) {
var x = 42;
var result = eval(string);
for (var i = 0; i < 100000; ++i)
result++;
return result;
}
noInline(foo);
for (var i = 0; i < 200; ++i) {
var result = foo("x + " + i);
if (result != 42 + i + 100000)
throw "Error: bad result: " + result;
}