aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 105e348509..a3b04dc13c 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -478,8 +478,10 @@ rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv,
rb_thread_t *th = GET_THREAD();
int respond = check_funcall_respond_to(th, klass, recv, mid);
- if (!respond)
+ if (!respond) {
+ (*hook)(FALSE, recv, mid, argc, argv, arg);
return Qundef;
+ }
me = rb_search_method_entry(recv, mid);
if (!check_funcall_callable(th, me)) {