Fixups after merge
This commit is contained in:
@@ -323,7 +323,7 @@ merge(Compressor.prototype, {
|
||||
if (side_effects_encountered |= lvalues_encountered) continue;
|
||||
|
||||
// Non-constant single use vars can only be replaced in same scope.
|
||||
if (ref.scope !== self) {
|
||||
if (ref.scope.get_defun_scope() !== self) {
|
||||
side_effects_encountered |= var_decl.value.has_side_effects(compressor);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user