Handle String() with no arguments.

Fix #91
This commit is contained in:
Mihai Bazon
2013-01-17 11:01:38 +02:00
parent c058d8b9cd
commit f0909bdc8f

View File

@@ -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: "+",