@@ -3024,6 +3024,16 @@ merge(Compressor.prototype, {
|
||||
return self;
|
||||
});
|
||||
|
||||
OPT(AST_Lambda, function(self, compressor){
|
||||
tighten_body(self.body, compressor);
|
||||
if (compressor.option("side_effects")
|
||||
&& self.body.length == 1
|
||||
&& self.body[0] === compressor.has_directive("use strict")) {
|
||||
self.body.length = 0;
|
||||
}
|
||||
return self;
|
||||
});
|
||||
|
||||
AST_Scope.DEFMETHOD("drop_unused", function(compressor){
|
||||
if (!compressor.option("unused")) return;
|
||||
if (compressor.has_directive("use asm")) return;
|
||||
|
||||
Reference in New Issue
Block a user