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