public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c9cc92
)
Revert #3a81f60 for now
author
Mihai Bazon
<mihai@bazon.net>
Tue, 22 Oct 2013 18:49:33 +0000
(21:49 +0300)
committer
Mihai Bazon
<mihai@bazon.net>
Tue, 22 Oct 2013 18:50:55 +0000
(21:50 +0300)
(with it some tests break and it can generate invalid output, see issue #44)
lib/compress.js
patch
|
blob
|
history
diff --git
a/lib/compress.js
b/lib/compress.js
index
d48af56
..
b79a508
100644
(file)
--- 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);