summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1538542-2.js
blob: 3efc05ceb6833a12783a430e906ccdad1a5d74ae (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: false
});
let { transplant } = transplantableObject();

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