blob: af2fa3600fb30ef19136477587b09c6c9c79a19b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Debugger.Object.prototype.executeInGlobal basics
var g = newGlobal({newCompartment: true});
var h = newGlobal({newCompartment: true});
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
var hw = dbg.addDebuggee(h);
g.y = "Bitte Orca";
h.y = "Visiter";
var y = "W H O K I L L";
assertEq(gw.executeInGlobal('y').return, "Bitte Orca");
assertEq(hw.executeInGlobal('y').return, "Visiter");
|