Don't drop unused if scope uses with statement
Fix provided by @kzc
This commit is contained in:
committed by
Richard van Velzen
parent
4d7746baf3
commit
ea31da2455
@@ -1326,6 +1326,7 @@ merge(Compressor.prototype, {
|
||||
if (compressor.option("unused")
|
||||
&& !(self instanceof AST_Toplevel)
|
||||
&& !self.uses_eval
|
||||
&& !self.uses_with
|
||||
) {
|
||||
var in_use = [];
|
||||
var in_use_ids = {}; // avoid expensive linear scans of in_use
|
||||
|
||||
Reference in New Issue
Block a user