@@ -11162,6 +11162,10 @@ Compressor.prototype.compress = function(node) {
|
||||
return;
|
||||
}
|
||||
if (node instanceof AST_Class) return abort = true;
|
||||
if (node instanceof AST_Destructured) {
|
||||
side_effects = true;
|
||||
return;
|
||||
}
|
||||
if (node instanceof AST_Scope) return abort = true;
|
||||
if (avoid && node instanceof AST_Symbol && avoid[node.name]) return abort = true;
|
||||
if (node instanceof AST_SymbolRef) {
|
||||
|
||||
@@ -3937,3 +3937,25 @@ issue_5843_2: {
|
||||
expect_stdout: "PASS"
|
||||
node_version: ">=6"
|
||||
}
|
||||
|
||||
issue_5844: {
|
||||
options = {
|
||||
inline: true,
|
||||
}
|
||||
input: {
|
||||
try {
|
||||
(function(a) {
|
||||
[ a.p ] = 42;
|
||||
})(console.log("PASS"));
|
||||
} catch (e) {}
|
||||
}
|
||||
expect: {
|
||||
try {
|
||||
(function(a) {
|
||||
[ a.p ] = 42;
|
||||
})(console.log("PASS"));
|
||||
} catch (e) {}
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
node_version: ">=6"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user