summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug904315.js
blob: 64239408f6b2aa088cd7e28ae3642841f5c030ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function g(o, idx, exp) {
    for (var i=0; i<3000; i++) {
	assertEq(o[idx], exp);
    }
}
function f() {
    var o = [];
    for (var i=1; i<100; i++) {
	o[-i] = 1;
    }
    g(o, 50, undefined);
    g(o, -50, 1);
}
f();