summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug633020.js
blob: 6e30bd1250d407aaf0ddbeacbd214d27c1dc15f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
var N = 10;
function f(b) {
    var a = [];
    for (var i = 0; i < N; i++)
        a[i] = {};
    a[N-1] = arguments;
    for (var i = 0; i < N; i++)
        a[i][0] = i;
    assertEq(b, N - 1);
}
f(null);