From f60499826f3a2845fced97556289c48f68be09e8 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 21 Aug 2024 14:35:19 -0400 Subject: [PATCH] [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. --- prism_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prism_compile.c b/prism_compile.c index 9aa2f21972..e72ce4957f 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -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 {