From 371ff808400b079b373e87de9b3deeb6c16f6a23 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Mon, 18 Dec 2023 21:32:25 +0000 Subject: [PATCH] [PRISM] Fix parameter numbering in For Node --- prism_compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/prism_compile.c b/prism_compile.c index 096b9e7903ffd7..9be075275d1eda 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -5567,6 +5567,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, int table_size = (int) locals_size; if (PM_NODE_TYPE_P(scope_node->ast_node, PM_FOR_NODE)) { + body->param.lead_num = 1; table_size++; }