@@ -607,7 +607,6 @@ empty_body: {
607607inline_binary_and: {
608608 options = {
609609 inline : true ,
610- side_effects : true ,
611610 }
612611 input: {
613612 console . log ( function ( ) {
@@ -627,9 +626,10 @@ inline_binary_and: {
627626 return "bar" ;
628627 } ( ) ) {
629628 while ( console . log ( "baz" ) ) ;
629+ return void "moo" ;
630630 return ;
631631 } else
632- return ;
632+ return void 0 ;
633633 } ( ) ) ;
634634 }
635635 expect_stdout: [
@@ -1121,7 +1121,6 @@ inline_return_binary: {
11211121inline_return_conditional: {
11221122 options = {
11231123 inline : true ,
1124- side_effects : true ,
11251124 }
11261125 input: {
11271126 console . log ( function ( ) {
@@ -2296,7 +2295,6 @@ duplicate_argnames_4: {
22962295 options = {
22972296 if_return : true ,
22982297 inline : true ,
2299- side_effects : true ,
23002298 }
23012299 input: {
23022300 ( function ( ) {
@@ -5547,7 +5545,6 @@ issue_3833_2: {
55475545 inline : true ,
55485546 keep_fargs : false ,
55495547 reduce_vars : true ,
5550- side_effects : true ,
55515548 toplevel : true ,
55525549 unused : true ,
55535550 }
@@ -5613,7 +5610,6 @@ issue_3836_2: {
56135610 options = {
56145611 if_return : true ,
56155612 inline : true ,
5616- side_effects : true ,
56175613 }
56185614 input: {
56195615 ( function ( ) {
@@ -5871,7 +5867,6 @@ statement_var_inline: {
58715867 options = {
58725868 inline : true ,
58735869 join_vars : true ,
5874- side_effects : true ,
58755870 unused : true ,
58765871 }
58775872 input: {
@@ -6162,7 +6157,6 @@ issue_4261: {
61626157 inline : true ,
61636158 reduce_funcs : true ,
61646159 reduce_vars : true ,
6165- side_effects : true ,
61666160 toplevel : true ,
61676161 unused : true ,
61686162 }
@@ -6455,7 +6449,6 @@ issue_4659_1: {
64556449 if_return : true ,
64566450 inline : true ,
64576451 reduce_vars : true ,
6458- side_effects : true ,
64596452 }
64606453 input: {
64616454 var a = 0 ;
@@ -6493,7 +6486,6 @@ issue_4659_2: {
64936486 if_return : true ,
64946487 inline : true ,
64956488 reduce_vars : true ,
6496- side_effects : true ,
64976489 }
64986490 input: {
64996491 var a = 0 ;
@@ -6518,7 +6510,7 @@ issue_4659_2: {
65186510 function f ( ) {
65196511 return a ++ ;
65206512 }
6521- f && a ++ ;
6513+ void ( f && a ++ ) ;
65226514 ( function ( ) {
65236515 var a = console && a ;
65246516 } ) ( ) ;
@@ -6533,7 +6525,6 @@ issue_4659_3: {
65336525 if_return : true ,
65346526 inline : true ,
65356527 reduce_vars : true ,
6536- side_effects : true ,
65376528 unused : true ,
65386529 }
65396530 input: {
@@ -6740,7 +6731,6 @@ issue_4725_2: {
67406731 options = {
67416732 if_return : true ,
67426733 inline : true ,
6743- side_effects : true ,
67446734 }
67456735 input: {
67466736 var o = {
@@ -7725,7 +7715,6 @@ issue_5239: {
77257715 functions : true ,
77267716 inline : true ,
77277717 reduce_vars : true ,
7728- side_effects : true ,
77297718 unused : true ,
77307719 }
77317720 input: {
@@ -7741,6 +7730,7 @@ issue_5239: {
77417730 var f = void 0 ;
77427731 var a = 42 , f = function ( ) { } ;
77437732 while ( console . log ( f . p || a ++ ) ) ;
7733+ return ;
77447734 } ) ( ) ;
77457735 }
77467736 expect_stdout: "42"
@@ -7843,7 +7833,7 @@ issue_5249_1: {
78437833 var a = "FAIL 1" ;
78447834 else if ( a ) {
78457835 while ( console . log ( "FAIL 2" ) ) ;
7846- return void 0 ;
7836+ return ;
78477837 } else
78487838 return void 0 ;
78497839 throw "FAIL 3" ;
@@ -8006,7 +7996,6 @@ issue_5264_1: {
80067996 ( function ( arguments ) {
80077997 console . log ( arguments ) ;
80087998 while ( console . log ( "foo" ) ) ;
8009- 0 ;
80107999 } ) ( "bar" ) ;
80118000 return arguments ;
80128001 } ( "baz" ) [ 0 ] ) ;
@@ -8125,7 +8114,6 @@ issue_5290: {
81258114issue_5296: {
81268115 options = {
81278116 inline : true ,
8128- side_effects : true ,
81298117 }
81308118 input: {
81318119 var a = "PASS" ;
@@ -8388,7 +8376,6 @@ issue_5409: {
83888376 inline : true ,
83898377 merge_vars : true ,
83908378 reduce_vars : true ,
8391- side_effects : true ,
83928379 unused : true ,
83938380 }
83948381 input: {
@@ -8406,6 +8393,7 @@ issue_5409: {
84068393 a = void 0 ;
84078394 console . log ( a && a ) ;
84088395 while ( ! console ) ;
8396+ return ;
84098397 } ) ( ) ;
84108398 }
84118399 expect_stdout: "undefined"
0 commit comments