blob: 443499a35e3894b043b6be7d09ec8b25a0581e90 [file] [log] [blame]
// onExceptionUnwind is not called for exceptions thrown and handled in the debugger.
var g = newGlobal();
var dbg = Debugger(g);
g.log = '';
dbg.onDebuggerStatement = function (frame) {
try {
throw new Error("oops");
} catch (exc) {
g.log += exc.message;
}
};
dbg.onExceptionUnwind = function (frame) {
g.log += 'BAD';
};
g.eval("debugger; log += ' ok';");
assertEq(g.log, 'oops ok');