1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

still not there

This commit is contained in:
Jeremy Ashkenas 2010-02-11 02:52:41 -05:00
parent e883a559ca
commit e19b67cb79
2 changed files with 2 additions and 2 deletions

View file

@ -778,7 +778,7 @@
i = __b[1];
}
access_class = this.variable.is_array() ? IndexNode : AccessorNode;
obj instanceof SplatNode ? (val = new LiteralNode(obj.compile_value(o, val_var, this.variable.base.objects.indexOf(obj)))) : (val = new ValueNode(val_var, [new access_class(new LiteralNode(i))]));
obj instanceof SplatNode ? (val = new LiteralNode(obj.compile_value(o, val_var, this.variable.base.objects.indexOf(obj)))) : (val = new ValueNode(new LiteralNode(val_var), [new access_class(new LiteralNode(i))]));
assigns.push(new AssignNode(obj, val).compile(o));
}
return assigns.join("\n");

View file

@ -599,7 +599,7 @@ AssignNode: exports.AssignNode: inherit Node, {
if obj instanceof SplatNode
val: new LiteralNode(obj.compile_value(o, val_var, @variable.base.objects.indexOf(obj)))
else
val: new ValueNode(val_var, [new access_class(new LiteralNode(i))])
val: new ValueNode(new LiteralNode(val_var), [new access_class(new LiteralNode(i))])
assigns.push(new AssignNode(obj, val).compile(o))
assigns.join("\n")