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