Speedup unused compress option for already minified code

Fixes: #321 #917 #1022
This commit is contained in:
kzc
2016-03-28 17:58:50 -04:00
parent 9bcf702a6e
commit 45ddb9caeb
2 changed files with 16 additions and 4 deletions

View File

@@ -53,8 +53,11 @@ function SymbolDef(scope, index, orig) {
this.undeclared = false;
this.constant = false;
this.index = index;
this.id = SymbolDef.next_id++;
};
SymbolDef.next_id = 1;
SymbolDef.prototype = {
unmangleable: function(options) {
if (!options) options = {};