diff options
author | Takashi Kokubun <[email protected]> | 2024-12-22 20:46:50 -0800 |
---|---|---|
committer | <[email protected]> | 2024-12-23 04:46:50 +0000 |
commit | 667a0f9f928be843a0810f2c61b633be1f8cd46a () | |
tree | bbbb416a05a7290bef39789a9ed0d0df0126a9b4 /prism_compile.c | |
parent | b19fcd02fae7bea162c6f1cee371a4b024305be7 (diff) |
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.
Notes: Merged-By: k0kubun <[email protected]>
-rw-r--r-- | prism_compile.c | 2 |
1 files changed, 1 insertions, 1 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; local_table_for_iseq->ids[local_index++] = local; } |