Actions
Bug #20195
closed3.3.0 YJIT mishandles ruby2_keywords splat into methods taking a rest parameter
Bug #20195:
3.3.0 YJIT mishandles ruby2_keywords splat into methods taking a rest parameter
Description
Check with:
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}]
Actions