From 8c34aff1c563ee722d7ce3d598094e86e7faf281 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 13 Jul 2010 21:51:27 -0400 Subject: [PATCH] Fixing issue #495 ... options wasn't being passed down in ArrayNode#compileSplatLiteral --- lib/nodes.js | 2 +- src/nodes.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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