[Bug #20965] Define it like an ordinary argument (#12398)

Also fixes [Bug #20955]
This commit is contained in:
Nobuyoshi Nakada 2024-12-19 16:12:16 +09:00 committed by GitHub
parent 2783868de2
commit 46fec0f62a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
Notes: git 2024-12-19 07:12:37 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
4 changed files with 8 additions and 4 deletions

View file

@ -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);
ID local = idIt;
local_table_for_iseq->ids[local_index++] = local;
}