summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Object-executeInGlobal-06.js
blob: a7390aeb229a59adb4da38f461a0f2a58db78370 (plain)
1
2
3
4
5
6
7
8
// Debugger.Object.prototype.executeInGlobal sets 'this' to the global.

var dbg = new Debugger;
var g1 = newGlobal();
var g1w = dbg.addDebuggee(g1);

assertEq(g1w.executeInGlobal('this').return, g1w);
assertEq(g1w.executeInGlobalWithBindings('this', { x:42 }).return, g1w);