Source code

Revision control

Copy as Markdown

Other Tools

g = newGlobal({newCompartment: true});
g.parent = this;
g.eval(`new Debugger(parent).onExceptionUnwind = () => null;`);
let exc = "fail";
// Module evaluation throws so we fire the onExceptionUnwind hook.
import("javascript: throw 'foo'").catch(e => { exc = e; });
drainJobQueue();
assertEq(exc, undefined);