@@ -6161,15 +6161,8 @@ Compressor.prototype.compress = function(node) {
|
||||
return true;
|
||||
}
|
||||
if (node instanceof AST_Scope) {
|
||||
var in_iife = false;
|
||||
if (node instanceof AST_LambdaExpression && !node.name && !is_async(node) && !is_generator(node)) {
|
||||
var parent = tw.parent();
|
||||
in_iife = parent && parent.TYPE == "Call" && parent.expression === node;
|
||||
}
|
||||
if (!in_iife) {
|
||||
push();
|
||||
segment.block = node;
|
||||
}
|
||||
push();
|
||||
segment.block = node;
|
||||
if (node === self) root = segment;
|
||||
if (node instanceof AST_Lambda) {
|
||||
if (node.name) references[node.name.definition().id] = false;
|
||||
@@ -6186,7 +6179,7 @@ Compressor.prototype.compress = function(node) {
|
||||
in_arg.pop();
|
||||
}
|
||||
walk_lambda(node, tw);
|
||||
if (!in_iife) pop();
|
||||
pop();
|
||||
return true;
|
||||
}
|
||||
if (node instanceof AST_Sub) {
|
||||
|
||||
Reference in New Issue
Block a user