blob: 76e2717ce8a4593fc743874bad5922492ca959af (
plain)
1
2
3
4
5
6
7
|
// A resumption value can't have both {return:} and {throw:} properties.
var g = newGlobal();
var dbg = Debugger(g);
dbg.onDebuggerStatement = stack => ({return: 1, throw: 2});
dbg.uncaughtExceptionHook = exc => ({return: "corrected"});
assertEq(g.eval("debugger; false;"), "corrected");
|