fix corner case in reduce_vars (#3151)
This commit is contained in:
@@ -388,7 +388,6 @@ merge(Compressor.prototype, {
|
||||
tw.defun_ids[def.id] = false;
|
||||
}
|
||||
});
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -565,7 +564,7 @@ merge(Compressor.prototype, {
|
||||
return true;
|
||||
});
|
||||
def(AST_Call, function(tw, descend) {
|
||||
if (tw.find_parent(AST_Scope).may_call_this()) return;
|
||||
tw.find_parent(AST_Scope).may_call_this();
|
||||
var exp = this.expression;
|
||||
if (!(exp instanceof AST_SymbolRef)) return;
|
||||
var def = exp.definition();
|
||||
|
||||
Reference in New Issue
Block a user