blob: 77eaaae6de5893e23a22a93ffda460767189c821 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Script.prototype.source should be the same object for both the top-level
* script and the script of functions accessed as debuggee values on the global
*/
let g = newGlobal();
let dbg = new Debugger();
let gw = dbg.addDebuggee(g);
let count = 0;
dbg.onDebuggerStatement = function (frame) {
++count;
assertEq(frame.script.source, gw.makeDebuggeeValue(g.f).script.source);
}
g.eval("function f() {}; debugger;");
assertEq(count, 1);
|