summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/long-proto-chains.js
blob: ceb387b0872f70aa67755abd1d9554235c3c1a27 (plain)
1
2
3
4
5
6
7
8
9
10
function f() {
    var o = {x: 1};
    for (var i = 0; i < 300; i++)
        o = Object.create(o);
    for (var i = 0; i < 15; i++) {
        assertEq(o.x, 1);
        assertEq(o.y, undefined);
    }
}
f();