blob: 00c698562e14ceb0334fb214ae95581af0d8d3ea [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo() {
"use strict";
try {
return arguments[0];
} catch (e) {
return 42;
}
}
var n = 100000;
var result = 0;
for (var i = 0; i < n; ++i)
result += foo(24);
if (result != n * 24)
throw "Error: bad result: " + result;