Object-executeInGlobal-06.js (341B)
1 // Debugger.Object.prototype.executeInGlobal sets 'this' to the global. 2 3 var dbg = new Debugger; 4 var g1 = newGlobal({newCompartment: true}); 5 var g1w = dbg.addDebuggee(g1); 6 7 assertEq(g1w.executeInGlobal('this').return, g1w.makeDebuggeeValue(g1)); 8 assertEq(g1w.executeInGlobalWithBindings('this', { x:42 }).return, g1w.makeDebuggeeValue(g1));