mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fixing issue #495 ... options wasn't being passed down in ArrayNode#compileSplatLiteral
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user