diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2019-09-17 14:32:19 -0700 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2019-09-17 16:22:44 -0700 |
| commit | 775365cbd2bf17195e694771fc1c15698273a640 (patch) | |
| tree | ffed420e45f7a91d203acf2a22ac66650af4e214 /spec/ruby/core/array | |
| parent | 9b35dc38644c10eed008f9ba19a7224f2fb49af2 (diff) | |
Fix keyword argument separation issues with sym procs when using refinements
Make sure that vm_yield_with_cfunc can correctly set the empty keyword
flag by passing 2 as the kw_splat value when calling it in
vm_invoke_ifunc_block. Make sure calling.kw_splat is set to 1 and not
128 in vm_sendish, so we can safely check for different kw_splat values.
vm_args.c needs to call add_empty_keyword, and to make JIT happy, the
function needs to be exported. Rename the function to
rb_adjust_argv_kw_splat to more accurately reflect what it does, and
mark it as MJIT exported.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2462
Diffstat (limited to 'spec/ruby/core/array')
0 files changed, 0 insertions, 0 deletions
