summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1834711.js
blob: 3708593b3461de363c6170ada3a9596bb498d21a (plain)
1
2
3
4
5
6
7
8
9
const global1 = newGlobal({"newCompartment": false});
const global2 = newGlobal({"newCompartment": true});

global1.nukeAllCCWs();

const {object, transplant} = this.transplantableObject(global1);

global2.firstGlobalInCompartment(object);
transplant(global1);