Importing names from places

This commit is contained in:
Fábio Santos
2016-02-21 17:06:09 +00:00
committed by Richard van Velzen
parent 0465bd270d
commit d35a9e7839
5 changed files with 56 additions and 9 deletions

View File

@@ -1775,6 +1775,10 @@ merge(Compressor.prototype, {
return self;
});
OPT(AST_Import, function(self, compressor) {
return self;
});
OPT(AST_Function, function(self, compressor){
self = AST_Lambda.prototype.optimize.call(self, compressor);
if (compressor.option("unused") && !compressor.option("keep_fnames")) {