File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -10353,7 +10353,6 @@ Compressor.prototype.compress = function(node) {
10353
10353
def.assignments++;
10354
10354
}
10355
10355
def.eliminated++;
10356
- def.single_use = false;
10357
10356
return a;
10358
10357
}, []);
10359
10358
if (assignments.length == 0) return null;
Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ issue_4489: {
228
228
evaluate : true ,
229
229
hoist_vars : true ,
230
230
reduce_vars : true ,
231
+ sequences : true ,
231
232
toplevel : true ,
232
233
unused : true ,
233
234
}
@@ -363,6 +364,7 @@ issue_4893_1: {
363
364
evaluate : true ,
364
365
hoist_vars : true ,
365
366
reduce_vars : true ,
367
+ side_effects : true ,
366
368
toplevel : true ,
367
369
unused : true ,
368
370
}
@@ -383,9 +385,8 @@ issue_4893_1: {
383
385
}
384
386
expect: {
385
387
try {
386
- ( function f ( ) {
388
+ ( function ( ) {
387
389
null . p += 42 ;
388
- f ;
389
390
} ) ( ) ;
390
391
} catch ( e ) {
391
392
console . log ( "PASS" ) ;
@@ -422,9 +423,7 @@ issue_4893_2: {
422
423
expect: {
423
424
try {
424
425
( function ( ) {
425
- var a ;
426
- a = null ;
427
- a . p += 42 ;
426
+ null . p += 42 ;
428
427
} ) ( ) ;
429
428
} catch ( e ) {
430
429
console . log ( "PASS" ) ;
@@ -610,6 +609,7 @@ issue_5411_2: {
610
609
evaluate : true ,
611
610
hoist_vars : true ,
612
611
reduce_vars : true ,
612
+ sequences : true ,
613
613
toplevel : true ,
614
614
unused : true ,
615
615
}
@@ -622,9 +622,9 @@ issue_5411_2: {
622
622
}
623
623
expect: {
624
624
var b , c ;
625
- b ++ ;
625
+ b ++ ,
626
626
b = "PASS" ,
627
- c ;
627
+ c ,
628
628
console . log ( b ) ;
629
629
}
630
630
expect_stdout: "PASS"
You can’t perform that action at this time.
0 commit comments