summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/realms/scripted-caller-global.js
blob: 15290e90b59f9b57b3c52b8d0b574555aba8eaae (plain)
1
2
3
4
5
assertEq(scriptedCallerGlobal(), this);

var g = newGlobal();
assertEq(g.evaluate("scriptedCallerGlobal()"), g);
assertEq(g.scriptedCallerGlobal(), this);