From: Mihai Bazon Date: Tue, 9 Oct 2012 10:13:55 +0000 (+0300) Subject: fix detecting symbols in use X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2c025f23db6efb6d1442208d81c2080d40c44f10;p=UglifyJS.git fix detecting symbols in use --- 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()); } });