blob: a7390aeb229a59adb4da38f461a0f2a58db78370 [file] [log] [blame]
// 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);