ruby-changes:46869
From: nobu <ko1@a...>
Date: Thu, 1 Jun 2017 16:46:27 +0900 (JST)
Subject: [ruby-changes:46869] nobu:r58984 (trunk): vm_eval.c: fix for rb_check_funcall_default
nobu 2017-06-01 16:46:22 +0900 (Thu, 01 Jun 2017) New Revision: 58984 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58984 Log: vm_eval.c: fix for rb_check_funcall_default * vm_eval.c (check_funcall_missing): basic_obj_respond_to_missing returns Qundef if respond_to_missing is not redefined. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 58983) +++ vm_eval.c (revision 58984) @@ -404,7 +404,7 @@ check_funcall_missing(rb_thread_t *th, V https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L404 ret = basic_obj_respond_to_missing(th, klass, recv, ID2SYM(mid), PRIV); - if (!RTEST(ret)) return def; + if (!RTEST(ret) || ret == Qundef) return def; args.respond = respond > 0; args.respond_to_missing = (ret != Qundef); ret = def; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/