Don't change DSTR nodes to ARRAY nodes
DSTR nodes are allocated in to the "markable" bucket where ARRAY nodes are not. Switching buckets can cause errors during GC.
This commit is contained in:
parent
545b6db3fb
commit
429ed8d587
4
parse.y
4
parse.y
@ -9611,9 +9611,7 @@ literal_concat(struct parser_params *p, NODE *head, NODE *tail, const YYLTYPE *l
|
||||
goto append;
|
||||
}
|
||||
else {
|
||||
nd_set_type(tail, NODE_ARRAY);
|
||||
tail->nd_head = NEW_STR(tail->nd_lit, loc);
|
||||
list_concat(head, tail);
|
||||
list_concat(head, NEW_NODE(NODE_ARRAY, NEW_STR(tail->nd_lit, loc), tail->nd_alen, tail->nd_next, loc));
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user