Skip to content

Commit

Permalink
[PRISM] Fix parameter numbering in For Node
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Dec 19, 2023
1 parent f0b86f8 commit 371ff80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prism_compile.c
Expand Up @@ -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++;
}

Expand Down

0 comments on commit 371ff80

Please sign in to comment.