summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1510598.js
blob: 0701474f1a7b5eae0a7539d8cf7f077b54bb8139 (plain)
1
2
3
4
5
6
7
8
9
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);