summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1228327.js
blob: af9cda58a441985493f42a9bd13e58cacd8456ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
for (var i=0; i<2; i++) {
    var o = {};
    Object.setPrototypeOf(o, null);
    o = Object.create(o);
    var p = {};
    Object.setPrototypeOf(p, o);
}
function f() {
    for (var i=1; i<20; i++)
        p[i] = i;
    for (var i=0; i<1500; i++)
        assertEq(p[0], undefined);
}
f();