diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-17 22:03:14 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-17 22:03:14 +0000 |
commit | fb70fc4af2b4bfe221c70608998c7e9661dd84f3 (patch) | |
tree | b78b74ac756f006dc9ccab7180e5c6ea3b8cdfc9 /ast.c | |
parent | fea28863729f7a28b3a2bd0269d92d1d0c9ea348 (diff) |
merge revision(s) 66819: [Backport #15532]
ast.c: fix missing head part in dynamic literal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@66851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -525,7 +525,9 @@ node_children(rb_ast_t *ast, NODE *node) goto dlit; case NODE_DSYM: dlit: - return rb_ary_new_from_node_args(ast, 2, node->nd_next->nd_head, node->nd_next->nd_next); + return rb_ary_new_from_args(3, node->nd_lit, + NEW_CHILD(ast, node->nd_next->nd_head), + NEW_CHILD(ast, node->nd_next->nd_next)); case NODE_EVSTR: return rb_ary_new_from_node_args(ast, 1, node->nd_body); case NODE_ARGSCAT: |