Source code
Revision control
Copy as Markdown
Other Tools
g = newGlobal({newCompartment: true});
g.log = "";
Debugger(g).onDebuggerStatement = frame => frame.eval("log += this.Math.toString();");
g.eval("(function() { with ({}) debugger })()");
assertEq(g.log, "[object Math]");