michael@0: /* michael@0: * Script.prototype.source should be the same object for both the top-level michael@0: * script and the script of functions accessed as debuggee values on the global michael@0: */ michael@0: let g = newGlobal(); michael@0: let dbg = new Debugger(); michael@0: let gw = dbg.addDebuggee(g); michael@0: michael@0: let count = 0; michael@0: dbg.onDebuggerStatement = function (frame) { michael@0: ++count; michael@0: assertEq(frame.script.source, gw.makeDebuggeeValue(g.f).script.source); michael@0: } michael@0: michael@0: g.eval("function f() {}; debugger;"); michael@0: assertEq(count, 1);