diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-10-22 21:49:33 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-10-22 21:50:55 +0300 |
commit | 63d04fff69de5e4c63f1a2476e57555805cbf401 (patch) | |
tree | e0115f27511c318de72bca8ba8cec7ef0bebac2d /lib | |
parent | 8c9cc920fb433ba41e816a61735a92e9e8f9a4d3 (diff) | |
download | tracifyjs-63d04fff69de5e4c63f1a2476e57555805cbf401.tar.gz tracifyjs-63d04fff69de5e4c63f1a2476e57555805cbf401.zip |
Revert #3a81f60 for now
(with it some tests break and it can generate invalid output, see issue #44)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index d48af569..b79a5088 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -86,6 +86,7 @@ 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); |