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