From 2c025f23db6efb6d1442208d81c2080d40c44f10 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 9 Oct 2012 13:13:55 +0300 Subject: [PATCH] fix detecting symbols in use --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }); -- 2.34.1