summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/async/await-exception-stack-in-finally-2.js
blob: 93ad6c591f4ce1dae185fd77e9e7345eda3c4145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ignoreUnhandledRejections();

var g = newGlobal({newCompartment: true})

// Throw an exception from a different compartment.
var thrower = g.Function(`
  throw 0;
`);

async function justThrow() {
  thrower();
}

justThrow();

// Nuke wrappers and make sure we don't crash.
nukeAllCCWs();