diff --git a/lib/nodes.js b/lib/nodes.js index 23c23f6b..39b0ef5b 100644 --- a/lib/nodes.js +++ b/lib/nodes.js @@ -686,7 +686,7 @@ obj = _b[i]; code = obj.compile(o); if (obj instanceof SplatNode) { - return this.compileSplatLiteral(this.objects, o); + return this.compileSplatLiteral(o); } else if (obj instanceof CommentNode) { objects.push("\n" + code + "\n" + o.indent); } else if (i === this.objects.length - 1) { diff --git a/src/nodes.coffee b/src/nodes.coffee index 472f75c7..649851da 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -633,7 +633,7 @@ exports.ArrayNode: class ArrayNode extends BaseNode for obj, i in @objects code: obj.compile(o) if obj instanceof SplatNode - return @compileSplatLiteral @objects, o + return @compileSplatLiteral o else if obj instanceof CommentNode objects.push "\n$code\n$o.indent" else if i is @objects.length - 1