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.
michael@0 | 1 | function f1() { |
michael@0 | 2 | assertEq(g(), 3); |
michael@0 | 3 | function g() { return 1 } |
michael@0 | 4 | assertEq(g(), 3); |
michael@0 | 5 | function g() { return 2 } |
michael@0 | 6 | assertEq(g(), 3); |
michael@0 | 7 | function g() { return 3 } |
michael@0 | 8 | assertEq(g(), 3); |
michael@0 | 9 | } |
michael@0 | 10 | f1(); |
michael@0 | 11 | |
michael@0 | 12 | function f2() { |
michael@0 | 13 | assertEq(g(), 2); |
michael@0 | 14 | var g = 3; |
michael@0 | 15 | assertEq(g, 3); |
michael@0 | 16 | function g() { return 1 } |
michael@0 | 17 | function g() { return 2 } |
michael@0 | 18 | } |
michael@0 | 19 | f2(); |
michael@0 | 20 | |
michael@0 | 21 | function f3() { |
michael@0 | 22 | assertEq(g(), 2); |
michael@0 | 23 | var g = 3; |
michael@0 | 24 | assertEq(g, 3); |
michael@0 | 25 | function g() { return 1 } |
michael@0 | 26 | var g = 4; |
michael@0 | 27 | assertEq(g, 4); |
michael@0 | 28 | function g() { return 2 } |
michael@0 | 29 | } |
michael@0 | 30 | f3(); |
michael@0 | 31 | |
michael@0 | 32 | function f4() { |
michael@0 | 33 | assertEq(g(), 4); |
michael@0 | 34 | function g() { return 1 } |
michael@0 | 35 | assertEq(g(), 4); |
michael@0 | 36 | function g() { return 2 } |
michael@0 | 37 | var g = 9; |
michael@0 | 38 | assertEq(g, 9); |
michael@0 | 39 | function g() { return 3 } |
michael@0 | 40 | assertEq(g, 9); |
michael@0 | 41 | function g() { return 4 } |
michael@0 | 42 | assertEq(g, 9); |
michael@0 | 43 | } |
michael@0 | 44 | f4(); |