Don't drop_unused before compression.
authorMihai Bazon <mihai@bazon.net>
Wed, 9 Oct 2013 16:15:09 +0000 (19:15 +0300)
committerMihai Bazon <mihai@bazon.net>
Wed, 9 Oct 2013 16:15:09 +0000 (19:15 +0300)
Fix #280, #282

lib/compress.js

index 4dd273b..3502b23 100644 (file)
@@ -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);