From ce04392d8d4f8cf14c70bbf1ad3544c7db4e1671 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 4 Sep 2019 01:32:42 +0900 Subject: Propagate kw_splat information The kw_splat flag is whether the original call passes keyword or not. Some types of methods (e.g., bmethod and sym_proc) drops the information. This change tries to propagate the flag to the final callee, as far as I can. --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 8d1ca95092..b5fa991a2d 100644 --- a/thread.c +++ b/thread.c @@ -681,7 +681,7 @@ thread_do_start(rb_thread_t *th) th->value = rb_vm_invoke_proc(th->ec, proc, (int)args_len, args_ptr, - VM_BLOCK_HANDLER_NONE); + 0 /* kw_splat */, VM_BLOCK_HANDLER_NONE); EXEC_EVENT_HOOK(th->ec, RUBY_EVENT_THREAD_END, th->self, 0, 0, 0, Qundef); } -- cgit v1.2.3