blob: 05b698a60429b97256e5fe0cacdd0fcc0dac84ee [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
//@ runNoFTL
function foo() {
var [a, b] = arguments;
return a - b;
}
var result = 0;
for (var i = 0; i < 1000000; ++i)
result += foo(42, i);
if (result != -499957500000)
throw "Bad result: " + result;