diff --git a/js/JavaScriptParseTree.js b/js/JavaScriptParseTree.js index 92999fea8..04e3fbc86 100644 --- a/js/JavaScriptParseTree.js +++ b/js/JavaScriptParseTree.js @@ -103,8 +103,9 @@ JavaScriptParseTree.prototype.renderNode = function(output,node) { output.push("}"); break; case "PropertyAssignment": + output.push("'"); output.push(node.name); - output.push(":"); + output.push("':"); this.renderNode(output,node.value); break; case "BinaryExpression":