blob: c849465b4e512b34a75fc29a8ca3a74c1a1fdd51 (
plain)
1
2
3
4
5
|
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]");
|