blob: b2826456e75d17a384b43ff0b685d87b239df055 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(s) {
var result = 0;
for (var i = 0; i < s.length; ++i)
result += s.charCodeAt(i);
return result;
}
for (var i = 0; i < 1000000; ++i) {
var result = foo("hello");
if (result != 532)
throw "Error: bad result: " + result;
}