summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/recover-lambdas-bug1133389.js
blob: a1fc813b63a387d615b6e0343467666c5375f7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var o = {}
Object.defineProperty(o, "p", {
    get: function() {
        return arguments.callee.caller.caller;
    }
});

function f() {
    function g() {
        return o.p;
    }
    return g();
}

for (var k = 0; k < 2; k++) {
    assertEq(f(), f);
}