fix corner case in reduce_funcs (#3592)
This commit is contained in:
@@ -5369,6 +5369,7 @@ merge(Compressor.prototype, {
|
||||
&& !fn.contains_this()
|
||||
&& can_inject_symbols()) {
|
||||
fn._squeezed = true;
|
||||
if (exp !== fn) fn.parent_scope = exp.scope;
|
||||
return make_sequence(self, flatten_fn()).optimize(compressor);
|
||||
}
|
||||
if (compressor.option("side_effects")
|
||||
@@ -6382,6 +6383,7 @@ merge(Compressor.prototype, {
|
||||
} while (scope = scope.parent_scope);
|
||||
}
|
||||
}
|
||||
if (single_use) fixed.parent_scope = self.scope;
|
||||
}
|
||||
if (single_use && fixed) {
|
||||
def.single_use = false;
|
||||
|
||||
Reference in New Issue
Block a user