&& self.right.getValue() === "" && self.left instanceof AST_Binary
&& self.left.operator == "+" && self.left.is_string(compressor)) {
return self.left;
- } else if (self.operator == "+" && self.right instanceof AST_String
- && self.right.getValue() === "" && self.left instanceof AST_Binary
- && self.left.operator == "+" && self.left.right instanceof AST_Number) {
- return make_node(AST_Binary, self, {
- left: self.left.left,
- operator: "+",
- right: make_node(AST_String, self.right, {
- value: String(self.left.right.value)
- })
- });
}
if (compressor.option("evaluate")) {
if (self.operator == "+") {