Debian Codegraph @

js/src/jit-test/tests/async/await-exception-stack-in-finally-2.js

raw
1 ignoreUnhandledRejections();
2
3 var g = newGlobal({newCompartment: true})
4
5 // Throw an exception from a different compartment.
6 var thrower = g.Function(`
7 throw 0;
8 `);
9
10 async function justThrow() {
11 thrower();
12 }
13
14 justThrow();
15
16 // Nuke wrappers and make sure we don't crash.
17 nukeAllCCWs();