aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-09 13:13:55 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-09 13:13:55 +0300
commit2c025f23db6efb6d1442208d81c2080d40c44f10 (patch)
tree86bc9f4f5c3a38f215b79d9ebf2191c794bd7733
parent9dfcd47ec8fef20a7c6f994bb8896a16ffa0eb2b (diff)
downloadtracifyjs-2c025f23db6efb6d1442208d81c2080d40c44f10.tar.gz
tracifyjs-2c025f23db6efb6d1442208d81c2080d40c44f10.zip
fix detecting symbols in use
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 3d55ecc1..6709d8e6 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -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());
}
});