Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // Debugger.Object.prototype.evalInGlobal sets 'this' to the global.
2
3 var dbg = new Debugger;
4 var g1 = newGlobal();
5 var g1w = dbg.addDebuggee(g1);
6
7 assertEq(g1w.evalInGlobal('this').return, g1w);
8 assertEq(g1w.evalInGlobalWithBindings('this', { x:42 }).return, g1w);