blob: df011cda276b2305e76cfd665097a13072c9c302 [file] [log] [blame]
(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;
}
})();