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 // The .name of a non-function object is undefined.
3 var g = newGlobal();
4 var hits = 0;
5 var dbg = new Debugger(g);
6 dbg.onDebuggerStatement = function (frame) {
7 assertEq(frame.arguments[0].name, undefined);
8 hits++;
9 };
10 g.eval("function f(nonfunction) { debugger; }");
12 g.eval("f({});");
13 g.eval("f(/a*/);");
14 g.eval("f({name: 'bad'});");
15 g.eval("f(Proxy.createFunction({name: {value: 'bad'}}, function () {}));");
16 assertEq(hits, 4);