diff --git a/lib/coffee_script/nodes.js b/lib/coffee_script/nodes.js index 37c6956f..509b82e8 100644 --- a/lib/coffee_script/nodes.js +++ b/lib/coffee_script/nodes.js @@ -550,7 +550,7 @@ ObjectNode = (exports.ObjectNode = inherit(Node, { type: 'Object', constructor: function constructor(props) { - this.objects = (this.properties = props || []); + this.children = (this.objects = (this.properties = props || [])); return this; }, // All the mucking about with commas is to make sure that CommentNodes and diff --git a/src/nodes.coffee b/src/nodes.coffee index 6b9435bf..f5ac353a 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -474,7 +474,7 @@ ObjectNode: exports.ObjectNode: inherit Node, { type: 'Object' constructor: (props) -> - @objects: @properties: props or [] + @children: @objects: @properties: props or [] this # All the mucking about with commas is to make sure that CommentNodes and