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