blob: 874ebb98603df5752290c8b517237a1a8af10e49 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
"use strict";
(function() {
let o = {
apply(a, b) {
return a + b;
}
};
function foo() {
let result = 0;
for (let i = 0; i < 1000; ++i)
result = o.apply(result, 1);
return result;
}
noInline(foo);
let result = 0;
for (let i = 0; i < 10000; ++i)
result += foo();
if (result != 10000000)
throw new "Bad result: " + result;
})();