blob: 101281b2a48ef29e80fcde5c6ffcf64b246e473c [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
var array = [];
for (var i = 0; i < 1000; ++i) {
var o = {};
o["i" + i] = i;
o.f = 42;
array.push(o);
}
for (var i = 0; i < 1000000; ++i) {
var result = array[i % array.length].f;
if (result != 42)
throw "Error: bad result: " + result;
}
})();