summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-03 01:43:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-03 01:43:10 +0000
commita6d34e75019f484baf6e27ae9af93d0093554ef3 (patch)
tree7202cb8506380831b56b16fd066975c2f5ac6e17 /vm_insnhelper.c
parentc3e1258ccd2fac7e1d62262ce1a66dba40119fce (diff)
vm_insnhelper.c: fix unusable super class
* vm_insnhelper.c (vm_call_method): unusable super class should cause method missing when BasicObject is refined but not been using. [ruby-core:64166] [Bug #10106] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47037 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 d6dd01f1bb..e899c1b6b4 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1823,6 +1823,10 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
klass = RCLASS_ORIGIN(klass);
zsuper_method_dispatch:
klass = RCLASS_SUPER(klass);
+ if (!klass) {
+ ci->me = 0;
+ goto start_method_dispatch;
+ }
ci_temp = *ci;
ci = &ci_temp;