Debian Codegraph @

js/src/jit-test/tests/gc/bug-1620195.js

raw
1 var g99 = newGlobal({});
2 nukeAllCCWs();
3 let group = new FinalizationRegistry(x90 => 0);
4 let other = newGlobal({
5 newCompartment: true
6 });
7
8 try {
9 group.register(evalcx('({})', other), 1);
10 } catch (e) {
11 // With the args --more-compartments evalcx will throw.
12 assertEq(e.message == "can't access dead object" ||
13 e.message == "Invalid scope argument to evalcx",
14 true);
15 }