summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/densearray.js
blob: 1d0e8fa7c3ea8a5f8afa89d572dd53e3e9d51b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f() {
    var o = [ 1, 2, 3, 4, 5 ];

    for (var i = 6; i < 10; ++i)
	o.push(i);

    return o;
}

var o = f();

assertEq(o.join(','), [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ].join(','));