mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
b19fcd02fa
commit
667a0f9f92
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
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue