1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// |jit-test| skip-if: !Array.prototype.at function f(x) { assertEq(x.at(0), 1); assertEq(x.at(-1), 3); assertEq(x.at(10), undefined); } function g() { for (var i = 0; i < 100; i++) { f([1, 2, 3]); } } for (var j = 0; j < 10; j++) { g(); }