@@ -549,6 +549,7 @@ merge(Compressor.prototype, {
|
||||
if (var_decl.value.is_constant()) {
|
||||
var ctt = new TreeTransformer(function(node) {
|
||||
if (node === ref
|
||||
&& !ctt.find_parent(AST_Destructuring)
|
||||
&& !ctt.find_parent(AST_ForIn)) {
|
||||
return replace_var(node, ctt.parent(), true);
|
||||
}
|
||||
@@ -581,6 +582,7 @@ merge(Compressor.prototype, {
|
||||
if (unwind) return node;
|
||||
var parent = tt.parent();
|
||||
if (node instanceof AST_Lambda
|
||||
|| node instanceof AST_Destructuring
|
||||
|| node instanceof AST_Try
|
||||
|| node instanceof AST_With
|
||||
|| node instanceof AST_Case
|
||||
|
||||
Reference in New Issue
Block a user