From e220b467ef3faf24140cba572b2d67973391aaa5 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 5 Sep 2019 13:03:09 -0700 Subject: 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. --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_insnhelper.c') 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); -- cgit v1.2.3