summaryrefslogtreecommitdiff
path: root/prism_compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-12-19 16:12:16 +0900
committer<[email protected]>2024-12-18 23:12:16 -0800
commit46fec0f62a1803d44edb8b06e39ac0f358e56670 ()
tree32b19e3c764f725a3c96c379ef045c12d18e39a4 /prism_compile.c
parent2783868de27113040fbfb5401325852fd12fbcd2 (diff)
[Bug #20965] Define `it` like an ordinary argument (#12398)
Also fixes [Bug #20955]
Notes: Merged-By: k0kubun <[email protected]>
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
@@ -5950,7 +5950,7 @@ pm_compile_scope_node(rb_iseq_t *iseq, pm_scope_node_t *scope_node, const pm_nod
}
if (scope_node->parameters != NULL && PM_NODE_TYPE_P(scope_node->parameters, PM_IT_PARAMETERS_NODE)) {
- ID local = rb_make_temporary_id(local_index);
local_table_for_iseq->ids[local_index++] = local;
}