summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1538542-1.js
blob: 5057de6f945074272d0e37f6c7ae6b0ef0605a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var lfOffThreadGlobal = newGlobal();
nukeAllCCWs();
const thisGlobal = this;
const otherGlobalNewCompartment = newGlobal({
    newCompartment: true
});
let { transplant } = transplantableObject();

// Just don't crash.
try {
    transplant(otherGlobalNewCompartment);
    transplant(thisGlobal);
} catch {}