File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -11162,6 +11162,10 @@ Compressor.prototype.compress = function(node) {
11162
11162
return;
11163
11163
}
11164
11164
if (node instanceof AST_Class) return abort = true;
11165
+ if (node instanceof AST_Destructured) {
11166
+ side_effects = true;
11167
+ return;
11168
+ }
11165
11169
if (node instanceof AST_Scope) return abort = true;
11166
11170
if (avoid && node instanceof AST_Symbol && avoid[node.name]) return abort = true;
11167
11171
if (node instanceof AST_SymbolRef) {
Original file line number Diff line number Diff line change @@ -3937,3 +3937,25 @@ issue_5843_2: {
3937
3937
expect_stdout: "PASS"
3938
3938
node_version: ">=6"
3939
3939
}
3940
+
3941
+ issue_5844: {
3942
+ options = {
3943
+ inline : true ,
3944
+ }
3945
+ input: {
3946
+ try {
3947
+ ( function ( a ) {
3948
+ [ a . p ] = 42 ;
3949
+ } ) ( console . log ( "PASS" ) ) ;
3950
+ } catch ( e ) { }
3951
+ }
3952
+ expect: {
3953
+ try {
3954
+ ( function ( a ) {
3955
+ [ a . p ] = 42 ;
3956
+ } ) ( console . log ( "PASS" ) ) ;
3957
+ } catch ( e ) { }
3958
+ }
3959
+ expect_stdout: "PASS"
3960
+ node_version: ">=6"
3961
+ }
You can’t perform that action at this time.
0 commit comments