summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/hole.js
blob: c990704cd71b50f86fc7c241fcb86ad2dbba208e (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    var a;
    for (var i=0; i<50; i++) {
        a = [i, , [,, i*3], ];
    }
    return a;
}
Array.prototype[1] = 123;
var arr = f();
assertEq(arr.length, 3);
assertEq(arr.toString(), "49,123,,123,147");