mark AST_Var out of block scopes (#2700)
This commit is contained in:
@@ -5032,10 +5032,8 @@ merge(Compressor.prototype, {
|
||||
var init;
|
||||
if (fixed instanceof AST_This) {
|
||||
if (!(d.orig[0] instanceof AST_SymbolFunarg)
|
||||
&& all(d.references, d.scope.is_block_scope() ? function(ref) {
|
||||
&& all(d.references, function(ref) {
|
||||
return d.scope === ref.scope;
|
||||
} : function(ref) {
|
||||
return d.scope === ref.scope.get_defun_scope();
|
||||
})) {
|
||||
init = fixed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user