@@ -7767,12 +7767,11 @@ merge(Compressor.prototype, {
|
||||
associative = compressor.option("unsafe_math");
|
||||
// +a - b => a - b
|
||||
// a - +b => a - b
|
||||
[ "left", "right" ].forEach(function(operand) {
|
||||
if (self.operator != "+") [ "left", "right" ].forEach(function(operand) {
|
||||
var node = self[operand];
|
||||
if (node instanceof AST_UnaryPrefix && node.operator == "+") {
|
||||
var exp = node.expression;
|
||||
if (exp.is_boolean(compressor) || exp.is_number(compressor)
|
||||
|| self.operator != "+" && exp.is_string(compressor)) {
|
||||
if (exp.is_boolean(compressor) || exp.is_number(compressor) || exp.is_string(compressor)) {
|
||||
self[operand] = exp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user