fix AST_Function scope invariance (#2052)
improve function name hack in `run_code()`
This commit is contained in:
@@ -2957,7 +2957,7 @@ merge(Compressor.prototype, {
|
||||
&& !(def.scope.uses_arguments
|
||||
&& def.orig[0] instanceof AST_SymbolFunarg)
|
||||
&& !def.scope.uses_eval
|
||||
&& compressor.find_parent(AST_Scope) === def.scope) {
|
||||
&& compressor.find_parent(AST_Scope) === exp.parent_scope) {
|
||||
self.expression = exp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user