fix for https://github.com/mishoo/UglifyJS/issues/474
authorMihai Bazon <mihai@bazon.net>
Fri, 23 Nov 2012 08:20:00 +0000 (10:20 +0200)
committerMihai Bazon <mihai@bazon.net>
Fri, 23 Nov 2012 08:20:00 +0000 (10:20 +0200)
lib/compress.js

index 7c4c910..d78d41d 100644 (file)
@@ -1744,7 +1744,7 @@ merge(Compressor.prototype, {
         }
         if (self.operator == "+" && self.right instanceof AST_String
             && self.right.getValue() === "" && self.left instanceof AST_Binary
-            && self.left.operator == "+" && self.left.is_string()) {
+            && self.left.operator == "+" && self.left.is_string(compressor)) {
             return self.left;
         }
         return self;