aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-10 02:40:21 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-10 02:40:21 +0000
commit53053bcac63f361c190280409ac99dab9bea41b3 (patch)
treeae2a945fc765375b160b206045461eb4177995a6 /vm_insnhelper.c
parent25dda42b7c20178b15968efeb47984c0316075bc (diff)
downloadruby-53053bcac63f361c190280409ac99dab9bea41b3.tar.gz
* vm_insnhelper.c (vm_call_method): stop method search when a method
is not found in a refinement, to support undef in refinements. [ruby-core:66741] [Bug #10578] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 02a4503f56..eb3411975e 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1752,6 +1752,10 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
goto start_method_dispatch;
}
}
+ else {
+ ci->me = 0;
+ goto start_method_dispatch;
+ }
no_refinement_dispatch:
if (ci->me->def->body.orig_me) {