File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10353,7 +10353,6 @@ Compressor.prototype.compress = function(node) {
1035310353 def.assignments++;
1035410354 }
1035510355 def.eliminated++;
10356- def.single_use = false;
1035710356 return a;
1035810357 }, []);
1035910358 if (assignments.length == 0) return null;
Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ issue_4489: {
228228 evaluate : true ,
229229 hoist_vars : true ,
230230 reduce_vars : true ,
231+ sequences : true ,
231232 toplevel : true ,
232233 unused : true ,
233234 }
@@ -363,6 +364,7 @@ issue_4893_1: {
363364 evaluate : true ,
364365 hoist_vars : true ,
365366 reduce_vars : true ,
367+ side_effects : true ,
366368 toplevel : true ,
367369 unused : true ,
368370 }
@@ -383,9 +385,8 @@ issue_4893_1: {
383385 }
384386 expect: {
385387 try {
386- ( function f ( ) {
388+ ( function ( ) {
387389 null . p += 42 ;
388- f ;
389390 } ) ( ) ;
390391 } catch ( e ) {
391392 console . log ( "PASS" ) ;
@@ -422,9 +423,7 @@ issue_4893_2: {
422423 expect: {
423424 try {
424425 ( function ( ) {
425- var a ;
426- a = null ;
427- a . p += 42 ;
426+ null . p += 42 ;
428427 } ) ( ) ;
429428 } catch ( e ) {
430429 console . log ( "PASS" ) ;
@@ -610,6 +609,7 @@ issue_5411_2: {
610609 evaluate : true ,
611610 hoist_vars : true ,
612611 reduce_vars : true ,
612+ sequences : true ,
613613 toplevel : true ,
614614 unused : true ,
615615 }
@@ -622,9 +622,9 @@ issue_5411_2: {
622622 }
623623 expect: {
624624 var b , c ;
625- b ++ ;
625+ b ++ ,
626626 b = "PASS" ,
627- c ;
627+ c ,
628628 console . log ( b ) ;
629629 }
630630 expect_stdout: "PASS"
You can’t perform that action at this time.
0 commit comments