Update literal ast nodes for new spec

This commit is contained in:
kpdecker
2014-11-26 19:22:09 -06:00
parent 2a4819d75c
commit 697bbe59ca
7 changed files with 41 additions and 43 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ CodeGen.prototype = {
},
quotedString: function(str) {
return '"' + str
return '"' + (str + '')
.replace(/\\/g, '\\\\')
.replace(/"/g, '\\"')
.replace(/\n/g, '\\n')