haikuwebkit/JSTests/microbenchmarks/arguments.js

13 lines
271 B
JavaScript

//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo() {
return arguments[0];
}
noInline(foo);
for (var i = 0; i < 1000000; ++i) {
var result = foo(i);
if (result != i)
throw "Error: bad result: " + result;
}