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); }