diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-09 13:13:55 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-09 13:13:55 +0300 |
commit | 2c025f23db6efb6d1442208d81c2080d40c44f10 (patch) | |
tree | 86bc9f4f5c3a38f215b79d9ebf2191c794bd7733 | |
parent | 9dfcd47ec8fef20a7c6f994bb8896a16ffa0eb2b (diff) | |
download | tracifyjs-2c025f23db6efb6d1442208d81c2080d40c44f10.tar.gz tracifyjs-2c025f23db6efb6d1442208d81c2080d40c44f10.zip |
fix detecting symbols in use
-rw-r--r-- | lib/compress.js | 2 |
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()); } }); |