[PRISM] Fix TestTRICK#test_ksk_1

If an array element is a static literal that does not result in a
intermediate array, it still needs to be compiled normally.
This commit is contained in:
Kevin Newton 2024-08-21 14:35:19 -04:00
parent 465cf8d80b
commit f60499826f
Notes: git 2024-08-21 20:32:39 +00:00

View File

@ -5793,6 +5793,8 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
}
}
else {
PM_COMPILE_NOT_POPPED(element);
if (++new_array_size >= max_new_array_size) FLUSH_CHUNK;
static_literal = true;
}
} else {