await-exception-stack-in-finally-3.js (380B)
1 ignoreUnhandledRejections(); 2 3 var g = newGlobal({newCompartment: true}) 4 5 // Allow |g| to nuke wrappers from the main compartment. 6 g.nuke = () => { 7 // Nuke wrappers and make sure we don't crash. 8 nukeAllCCWs(); 9 }; 10 11 // Throw an exception from a different compartment. 12 var thrower = g.Function(` 13 nuke(); 14 throw 0; 15 `); 16 17 async function justThrow() { 18 thrower(); 19 } 20 21 justThrow();