Project

General

Profile

Bug #20195

Updated by alanwu (Alan Wu) 7 months ago

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 

Back