diff options
author | Jeremy Evans <[email protected]> | 2019-09-05 13:03:09 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-09-05 17:47:12 -0700 |
commit | e220b467ef3faf24140cba572b2d67973391aaa5 (patch) | |
tree | 3f210a81a03ffdcbf9da8b8a8c12606ea5971fd5 /vm_insnhelper.c | |
parent | e2878a96f77978b224f8461244cd3e1efc248d83 (diff) |
Convert empty keyword hash to required positional argument and warn for sym procs
This is the same as the bmethod and send cases, where we don't
remove the keyword splat, so later code can move it to to a
a required positional parameter and warn.
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b1ea71a828..1bbe39754e 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3039,7 +3039,7 @@ vm_invoke_symbol_block(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, { VALUE val; int argc; - CALLER_SETUP_ARG(ec->cfp, calling, ci); + CALLER_SETUP_ARG_WITHOUT_KW_SPLAT(ec->cfp, calling, ci); argc = calling->argc; val = vm_yield_with_symbol(ec, symbol, argc, STACK_ADDR_FROM_TOP(argc), calling->kw_splat, calling->block_handler); POPN(argc); |