minor clean-ups (#5701)
This commit is contained in:
@@ -368,7 +368,6 @@ Compressor.prototype.compress = function(node) {
|
||||
args: [],
|
||||
});
|
||||
}
|
||||
return self;
|
||||
});
|
||||
AST_Node.DEFMETHOD("wrap_expression", function() {
|
||||
var self = this;
|
||||
@@ -5083,7 +5082,7 @@ Compressor.prototype.compress = function(node) {
|
||||
return static_fn && (static_fn[node.property] || expr.name == "Math" && node.property == "random");
|
||||
}
|
||||
|
||||
// Accomodate when compress option evaluate=false
|
||||
// Accommodate when compress option evaluate=false
|
||||
// as well as the common constant expressions !0 and -1
|
||||
(function(def) {
|
||||
def(AST_Node, return_false);
|
||||
@@ -11882,7 +11881,7 @@ Compressor.prototype.compress = function(node) {
|
||||
if (nullish ? ll == null : !ll) {
|
||||
AST_Node.warn("Condition left of {operator} always {value} [{start}]", {
|
||||
operator: self.operator,
|
||||
value: nullish ? "nulish" : "false",
|
||||
value: nullish ? "nullish" : "false",
|
||||
start: self.start,
|
||||
});
|
||||
return make_sequence(self, [ self.left, self.right ]).optimize(compressor);
|
||||
|
||||
Reference in New Issue
Block a user