blob: 67f587cd3f1ad7699e8578e0424a8629b95def1d [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
var args = (function(a) {
(function() {
a++;
})();
return arguments;
})(1, 2, 3, 4, 5);
if (args[0] != 2)
throw "Error: bad args: " + args;
var array = [args, [1, 2, 3]];
var result = 0;
for (var i = 0; i < 1000000; ++i)
result += array[i % array.length].length;
if (result != 4000000)
throw "Error: bad result: " + result;
})();