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.)
2 /* Resolve 'arguments' and the name of the function itself in the presence of such local variables. */
4 function f() {
5 return typeof arguments;
6 function arguments() {
7 return 7;
8 }
9 }
10 assertEq(f(), "function");
12 function g() {
13 var arguments = 0;
14 return typeof arguments;
15 }
16 assertEq(g(), "number");
18 function h() {
19 return typeof h;
20 function h() {
21 return 7;
22 }
23 }
24 assertEq(h(), "function");
26 function i() {
27 return typeof i;
28 var i;
29 }
30 assertEq(i(), "undefined");
32 function j() {
33 return typeof j;
34 }
35 assertEq(j(), "function");