1 2 3 4 5 6 7 8 9 10 11 12
function foo() { function bar() { function baz() { assertEq(arguments.callee.caller === null, false); } for (var i = 0; i < 10; i++) baz(); } bar(); } foo();