aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-11-08 15:39:14 +0200
committerMihai Bazon <mihai@bazon.net>2012-11-08 15:39:14 +0200
commit1e5e13ed81fe96d4388ae7d9ff1402a871c436b7 (patch)
tree0fee1c2156af5f9b222477988f35b890c6ae8a56 /lib/compress.js
parent64270b97780afa714a5c0f86116f88261c310175 (diff)
downloadtracifyjs-1e5e13ed81fe96d4388ae7d9ff1402a871c436b7.tar.gz
tracifyjs-1e5e13ed81fe96d4388ae7d9ff1402a871c436b7.zip
AST_LabelRef no longer inherits from AST_SymbolRef
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 1571173c..469ee6e2 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -885,7 +885,7 @@ merge(Compressor.prototype, {
});
return true;
}
- if (node instanceof AST_SymbolRef && !(node instanceof AST_LabelRef)) {
+ if (node instanceof AST_SymbolRef) {
push_uniq(in_use, node.definition());
return true;
}
@@ -908,8 +908,7 @@ merge(Compressor.prototype, {
if (decl instanceof AST_SymbolDeclaration) {
decl.init.forEach(function(init){
var tw = new TreeWalker(function(node){
- if (node instanceof AST_SymbolRef
- && !(node instanceof AST_LabelRef)) {
+ if (node instanceof AST_SymbolRef) {
push_uniq(in_use, node.definition());
}
});