aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/compress.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 0f3a795c..982b2b19 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1566,6 +1566,9 @@ merge(Compressor.prototype, {
}
break;
case "String":
+ if (self.args.length == 0) return make_node(AST_String, self, {
+ value: ""
+ });
return make_node(AST_Binary, self, {
left: self.args[0],
operator: "+",