This commit is contained in:
Mihai Bazon
2013-10-09 22:15:43 +03:00
parent 3a81f60982
commit 3fa9265ce4

View File

@@ -91,15 +91,7 @@ merge(Compressor.prototype, {
descend(node, this);
node = node.optimize(this);
if (node instanceof AST_Scope) {
// dead code removal might leave further unused declarations.
// this'll usually save very few bytes, but the performance
// hit seems negligible so I'll just drop it here.
// no point to repeat warnings.
var save_warnings = this.options.warnings;
this.options.warnings = false;
node.drop_unused(this);
this.options.warnings = save_warnings;
}
node._squeezed = true;
return node;