@@ -607,6 +607,7 @@ empty_body: {
607607inline_binary_and: {
608608 options = {
609609 inline : true ,
610+ side_effects : true ,
610611 }
611612 input: {
612613 console . log ( function ( ) {
@@ -626,7 +627,6 @@ inline_binary_and: {
626627 return "bar" ;
627628 } ( ) ) {
628629 while ( console . log ( "baz" ) ) ;
629- return void "moo" ;
630630 return ;
631631 } else
632632 return ;
@@ -1121,6 +1121,7 @@ inline_return_binary: {
11211121inline_return_conditional: {
11221122 options = {
11231123 inline : true ,
1124+ side_effects : true ,
11241125 }
11251126 input: {
11261127 console . log ( function ( ) {
@@ -2295,6 +2296,7 @@ duplicate_argnames_4: {
22952296 options = {
22962297 if_return : true ,
22972298 inline : true ,
2299+ side_effects : true ,
22982300 }
22992301 input: {
23002302 ( function ( ) {
@@ -5545,6 +5547,7 @@ issue_3833_2: {
55455547 inline : true ,
55465548 keep_fargs : false ,
55475549 reduce_vars : true ,
5550+ side_effects : true ,
55485551 toplevel : true ,
55495552 unused : true ,
55505553 }
@@ -5582,7 +5585,7 @@ issue_3835: {
55825585 return f ( ) ;
55835586 } ) ( ) ;
55845587 }
5585- expect_stdout: true
5588+ expect_stdout: RangeError ( "Maximum call stack size exceeded" )
55865589}
55875590
55885591issue_3836_1: {
@@ -5610,6 +5613,7 @@ issue_3836_2: {
56105613 options = {
56115614 if_return : true ,
56125615 inline : true ,
5616+ side_effects : true ,
56135617 }
56145618 input: {
56155619 ( function ( ) {
@@ -5867,6 +5871,7 @@ statement_var_inline: {
58675871 options = {
58685872 inline : true ,
58695873 join_vars : true ,
5874+ side_effects : true ,
58705875 unused : true ,
58715876 }
58725877 input: {
@@ -6157,6 +6162,7 @@ issue_4261: {
61576162 inline : true ,
61586163 reduce_funcs : true ,
61596164 reduce_vars : true ,
6165+ side_effects : true ,
61606166 toplevel : true ,
61616167 unused : true ,
61626168 }
@@ -6449,6 +6455,7 @@ issue_4659_1: {
64496455 if_return : true ,
64506456 inline : true ,
64516457 reduce_vars : true ,
6458+ side_effects : true ,
64526459 }
64536460 input: {
64546461 var a = 0 ;
@@ -6486,6 +6493,7 @@ issue_4659_2: {
64866493 if_return : true ,
64876494 inline : true ,
64886495 reduce_vars : true ,
6496+ side_effects : true ,
64896497 }
64906498 input: {
64916499 var a = 0 ;
@@ -6510,7 +6518,7 @@ issue_4659_2: {
65106518 function f ( ) {
65116519 return a ++ ;
65126520 }
6513- void ( f && a ++ ) ;
6521+ f && a ++ ;
65146522 ( function ( ) {
65156523 var a = console && a ;
65166524 } ) ( ) ;
@@ -6525,6 +6533,7 @@ issue_4659_3: {
65256533 if_return : true ,
65266534 inline : true ,
65276535 reduce_vars : true ,
6536+ side_effects : true ,
65286537 unused : true ,
65296538 }
65306539 input: {
@@ -6731,6 +6740,7 @@ issue_4725_2: {
67316740 options = {
67326741 if_return : true ,
67336742 inline : true ,
6743+ side_effects : true ,
67346744 }
67356745 input: {
67366746 var o = {
@@ -7715,6 +7725,7 @@ issue_5239: {
77157725 functions : true ,
77167726 inline : true ,
77177727 reduce_vars : true ,
7728+ side_effects : true ,
77187729 unused : true ,
77197730 }
77207731 input: {
@@ -7730,7 +7741,6 @@ issue_5239: {
77307741 var f = void 0 ;
77317742 var a = 42 , f = function ( ) { } ;
77327743 while ( console . log ( f . p || a ++ ) ) ;
7733- return ;
77347744 } ) ( ) ;
77357745 }
77367746 expect_stdout: "42"
@@ -7833,9 +7843,9 @@ issue_5249_1: {
78337843 var a = "FAIL 1" ;
78347844 else if ( a ) {
78357845 while ( console . log ( "FAIL 2" ) ) ;
7836- return ;
7846+ return void 0 ;
78377847 } else
7838- return ;
7848+ return void 0 ;
78397849 throw "FAIL 3" ;
78407850 } ( ) ) ;
78417851 }
@@ -7996,6 +8006,7 @@ issue_5264_1: {
79968006 ( function ( arguments ) {
79978007 console . log ( arguments ) ;
79988008 while ( console . log ( "foo" ) ) ;
8009+ 0 ;
79998010 } ) ( "bar" ) ;
80008011 return arguments ;
80018012 } ( "baz" ) [ 0 ] ) ;
@@ -8114,6 +8125,7 @@ issue_5290: {
81148125issue_5296: {
81158126 options = {
81168127 inline : true ,
8128+ side_effects : true ,
81178129 }
81188130 input: {
81198131 var a = "PASS" ;
@@ -8376,6 +8388,7 @@ issue_5409: {
83768388 inline : true ,
83778389 merge_vars : true ,
83788390 reduce_vars : true ,
8391+ side_effects : true ,
83798392 unused : true ,
83808393 }
83818394 input: {
@@ -8393,7 +8406,6 @@ issue_5409: {
83938406 a = void 0 ;
83948407 console . log ( a && a ) ;
83958408 while ( ! console ) ;
8396- return ;
83978409 } ) ( ) ;
83988410 }
83998411 expect_stdout: "undefined"
0 commit comments