Debian Codegraph @

js/src/jit-test/tests/modules/bug-1510598.js

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