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.
1 // Test for one annoying case of the EliminateUnreachableCode
2 // optimization. Here the dominator of print("Goodbye") changes to be
3 // the print("Hello") after optimization.
5 function test1(v) {
6 if (v) {
7 if (v) {
8 assertEq(v, v);
9 } else {
10 assertEq(0, 1);
11 }
12 } else {
13 if (v) {
14 assertEq(0, 1);
15 } else {
16 assertEq(v, v);
17 }
18 }
19 assertEq(v, v);
20 }
22 function test() {
23 test1(true);
24 test1(false);
25 }
27 for (var i = 0; i < 100; i++)
28 test();