diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/realms/scripted-caller-global.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/realms/scripted-caller-global.js b/js/src/jit-test/tests/realms/scripted-caller-global.js new file mode 100644 index 0000000000..15290e90b5 --- /dev/null +++ b/js/src/jit-test/tests/realms/scripted-caller-global.js @@ -0,0 +1,5 @@ +assertEq(scriptedCallerGlobal(), this); + +var g = newGlobal(); +assertEq(g.evaluate("scriptedCallerGlobal()"), g); +assertEq(g.scriptedCallerGlobal(), this); |