Debian Codegraph @

js/src/jit-test/tests/debug/resumption-error-01.js

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