fix detecting symbols in use
This commit is contained in:
parent
9dfcd47ec8
commit
2c025f23db
|
|
@ -841,7 +841,7 @@ merge(Compressor.prototype, {
|
||||||
decl.init.forEach(function(init){
|
decl.init.forEach(function(init){
|
||||||
var tw = new TreeWalker(function(node){
|
var tw = new TreeWalker(function(node){
|
||||||
if (node instanceof AST_SymbolRef
|
if (node instanceof AST_SymbolRef
|
||||||
&& node.definition().scope.$self === self.$self) {
|
&& !(node instanceof AST_LabelRef)) {
|
||||||
push_uniq(in_use, node.definition());
|
push_uniq(in_use, node.definition());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user