Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 // In a debuggee with functions, findScripts finds those functions' scripts.
3 var g = newGlobal();
4 g.eval('function f(){}');
5 g.eval('function g(){}');
6 g.eval('function h(){}');
8 var dbg = new Debugger();
9 var gw = dbg.addDebuggee(g);
10 var fw = gw.makeDebuggeeValue(g.f);
11 var gw = gw.makeDebuggeeValue(g.g);
12 var hw = gw.makeDebuggeeValue(g.h);
14 assertEq(dbg.findScripts().indexOf(fw.script) != -1, true);
15 assertEq(dbg.findScripts().indexOf(gw.script) != -1, true);
16 assertEq(dbg.findScripts().indexOf(hw.script) != -1, true);