Revert "[Bug #20965] Define it like an ordinary argument" (#12418)

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

Reverts ruby/ruby#12398 as per https://bugs.ruby-lang.org/issues/20970#note-6 and https://bugs.ruby-lang.org/issues/20965#note-7.
We need more time to design the intended behavior, and it's too late for Ruby 3.4.
This commit is contained in:
Takashi Kokubun 2024-12-22 20:46:50 -08:00 committed by GitHub
parent b19fcd02fa
commit 667a0f9f92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
Notes: git 2024-12-23 04:47:08 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
4 changed files with 4 additions and 8 deletions

View file

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