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