fix detecting symbols in use

This commit is contained in:
Mihai Bazon
2012-10-09 13:13:55 +03:00
parent 9dfcd47ec8
commit 2c025f23db

View File

@@ -841,7 +841,7 @@ merge(Compressor.prototype, {
decl.init.forEach(function(init){
var tw = new TreeWalker(function(node){
if (node instanceof AST_SymbolRef
&& node.definition().scope.$self === self.$self) {
&& !(node instanceof AST_LabelRef)) {
push_uniq(in_use, node.definition());
}
});