Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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");