summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/realms/first-global.js
blob: d2a4bbade06c4dcdc946ef0677384aae08522548 (plain)
1
2
3
4
5
var g1 = newGlobal({sameCompartmentAs: this});
var g2 = newGlobal({newCompartment: true});
assertEq(firstGlobalInCompartment(this), this);
assertEq(firstGlobalInCompartment(g1), this);
assertEq(firstGlobalInCompartment(g2), g2);