fix corner case in inline (#3608)
This commit is contained in:
@@ -6444,6 +6444,15 @@ merge(Compressor.prototype, {
|
||||
fixed = make_node(AST_Function, fixed, fixed);
|
||||
fixed.name = make_node(AST_SymbolLambda, fixed.name, fixed.name);
|
||||
}
|
||||
if (fixed instanceof AST_Lambda) {
|
||||
var scope = self.scope;
|
||||
fixed.enclosed.forEach(function(def) {
|
||||
if (fixed.variables.has(def.name)) return;
|
||||
if (scope.var_names()[def.name]) return;
|
||||
scope.enclosed.push(def);
|
||||
scope.var_names()[def.name] = true;
|
||||
});
|
||||
}
|
||||
var value;
|
||||
if (def.recursive_refs > 0) {
|
||||
value = fixed.clone(true);
|
||||
|
||||
Reference in New Issue
Block a user