Skip to content

Commit

Permalink
[PRISM] Fix TestTRICK#test_ksk_1
Browse files Browse the repository at this point in the history
If an array element is a static literal that does not result in a
intermediate array, it still needs to be compiled normally.
  • Loading branch information
kddnewton committed Aug 21, 2024
1 parent 465cf8d commit f604998
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prism_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f604998

Please sign in to comment.