summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1605633.js
blob: 87f56688861b0e1e2dea7c8dcb2a194892990440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
newGlobal();
nukeAllCCWs();
var g28 = newGlobal({
    newCompartment: true
});
try {
  let wr6 = new g28.WeakRef(newGlobal());
  new WeakRef(wr6);
} catch (e) {
  assertEq(e.message == "can't access dead object", true);
}