blob: 76d7d5f1c7d931a7611a6d72f138120c3f1f950a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var global = 0;
Object.defineProperty(Array.prototype, "2", {get: function() { return global++; }});
function f() {
var a = [];
var b = [0, 1, , 3];
for (var i=0; i<100; i++)
var c = a.concat(b);
assertEq(c[2], 99);
}
f();
|