drop unused arrow functions (#2050)
This commit is contained in:
@@ -1923,6 +1923,7 @@ merge(Compressor.prototype, {
|
||||
});
|
||||
def(AST_Defun, return_true);
|
||||
def(AST_Function, return_false);
|
||||
def(AST_Arrow, return_false);
|
||||
def(AST_Class, return_false);
|
||||
def(AST_DefClass, return_true);
|
||||
def(AST_Binary, function(compressor){
|
||||
@@ -2608,6 +2609,7 @@ merge(Compressor.prototype, {
|
||||
});
|
||||
def(AST_Accessor, return_null);
|
||||
def(AST_Function, return_null);
|
||||
def(AST_Arrow, return_null);
|
||||
def(AST_Binary, function(compressor, first_in_statement){
|
||||
var right = this.right.drop_side_effect_free(compressor);
|
||||
if (!right) return this.left.drop_side_effect_free(compressor, first_in_statement);
|
||||
|
||||
Reference in New Issue
Block a user