[ruby-core:118054] [Ruby master Bug#20195] 3.3.0 YJIT mishandles ruby2_keywords splat into methods taking a rest parameter
From:
"k0kubun (Takashi Kokubun) via ruby-core" <ruby-core@...>
Date:
2024-05-29 00:11:57 UTC
List:
ruby-core #118054
Issue #20195 has been updated by k0kubun (Takashi Kokubun).
Backport changed from 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE
ruby_3_3 commit:6383d0afac6aa02b3e72d08128cc1d8327f149fa merged revision(s) commit:015b0e2e1d312e2be60551587389c8da5c585e6f,ac1e9e443a0d6a4d4c0801c26d1d8bd33d9eb431.
----------------------------------------
Bug #20195: 3.3.0 YJIT mishandles ruby2_keywords splat into methods taking a rest parameter
https://bugs.ruby-lang.org/issues/20195#change-108477
* Author: alanwu (Alan Wu)
* Status: Closed
* Backport: 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE
----------------------------------------
Check with:
```ruby
ruby2_keywords def foo(*args) = args
def bar(*args, **kw) = [args, kw]
def pass_bar(*args) = bar(*args)
def body
args = foo(a: 1)
pass_bar(*args)
end
p body
```
```
$ ruby ../test.rb
[[{:a=>1}], {}]
$ ruby --yjit-call-threshold=1 ../test.rb
[[], {:a=>1}]
```
Fix at: https://github.com/ruby/ruby/pull/9621
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/