blob: b2b9534d0723401eb356c0e52d75777272ae75aa [file] [log] [blame]
// We shouldn't hand out environment callees when we can only provide the
// internal function object, not the live function object. (We should never
// create Debugger.Object instances referring to internal function objects.)
var g = newGlobal();
var dbg = new Debugger(g);
dbg.onDebuggerStatement = function (frame) {
assertEq(frame.older.environment.parent.callee, null);
}
g.evaluate(`
function h() { debugger; }
(function () {
return function () {
h();
return 1;
}
})()();
`);