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:
Aaron Patterson 2019-09-04 14:37:13 -07:00
parent 545b6db3fb
commit 429ed8d587
No known key found for this signature in database
GPG Key ID: 953170BCB4FFAFC6

View File

@ -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;