diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/realms/first-global.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/realms/first-global.js b/js/src/jit-test/tests/realms/first-global.js new file mode 100644 index 0000000000..d2a4bbade0 --- /dev/null +++ b/js/src/jit-test/tests/realms/first-global.js @@ -0,0 +1,5 @@ +var g1 = newGlobal({sameCompartmentAs: this}); +var g2 = newGlobal({newCompartment: true}); +assertEq(firstGlobalInCompartment(this), this); +assertEq(firstGlobalInCompartment(g1), this); +assertEq(firstGlobalInCompartment(g2), g2); |