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 // dbg.getNewestFrame in an onPop handler returns the frame being popped.
2 var g = newGlobal();
3 g.eval("function f() { debugger; }");
4 g.eval("function g() { f(); }");
5 g.eval("function h() { g(); }");
6 g.eval("function i() { h(); }");
8 var dbg = new Debugger(g);
9 var log;
10 dbg.onEnterFrame = function handleEnter(f) {
11 log += "(" + f.callee.name;
12 f.onPop = function handlePop(c) {
13 log += ")" + f.callee.name;
14 assertEq(dbg.getNewestFrame(), this);
15 };
16 };
17 log = '';
18 g.i();
19 assertEq(log, "(i(h(g(f)f)g)h)i");