fix corner case in reduce_vars (#4636)
This commit is contained in:
@@ -9836,7 +9836,8 @@ merge(Compressor.prototype, {
|
||||
}
|
||||
} while (scope = scope.parent_scope);
|
||||
}
|
||||
} else if (fixed.name && fixed.name.name == "await" && is_async(fixed)) {
|
||||
} else if (fixed.name && (fixed.name.name == "await" && is_async(fixed)
|
||||
|| fixed.name.name == "yield" && is_generator(fixed))) {
|
||||
single_use = false;
|
||||
}
|
||||
if (single_use) fixed.parent_scope = self.scope;
|
||||
|
||||
Reference in New Issue
Block a user