aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-10-09 19:15:09 +0300
committerMihai Bazon <mihai@bazon.net>2013-10-09 19:15:09 +0300
commit3a81f60982a7f20ef9bd75b851759793ffe1d270 (patch)
treefb75459a4d9044858912c8725ea80bf0d8fb761a /lib/compress.js
parentf2348dd98baeb7dc3e0542465ede897c15d7cbc9 (diff)
downloadtracifyjs-3a81f60982a7f20ef9bd75b851759793ffe1d270.tar.gz
tracifyjs-3a81f60982a7f20ef9bd75b851759793ffe1d270.zip
Don't drop_unused before compression.
Fix #280, #282
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 4dd273b5..3502b23e 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -86,7 +86,6 @@ merge(Compressor.prototype, {
before: function(node, descend, in_list) {
if (node._squeezed) return node;
if (node instanceof AST_Scope) {
- node.drop_unused(this);
node = node.hoist_declarations(this);
}
descend(node, this);