Skip to content

Commit

Permalink
[Truffle] Fix load of default arguments that are arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Apr 29, 2015
1 parent 96f075a commit 146856d
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -318,7 +318,11 @@ private RubyNode translateLocalAssignment(ISourcePosition sourcePosition, String
@Override
public RubyNode visitArrayNode(org.jruby.ast.ArrayNode node) {
// (ArrayNode 0, (MultipleAsgn19Node 0, (ArrayNode 0, (LocalAsgnNode:a 0, ), (LocalAsgnNode:b 0, )), null, null)))
return node.childNodes().get(0).accept(this);
if (node.size() == 1 && node.get(0) instanceof org.jruby.ast.MultipleAsgn19Node) {
return node.childNodes().get(0).accept(this);
} else {
return defaultVisit(node);
}
}

@Override
Expand Down

0 comments on commit 146856d

Please sign in to comment.