summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-09 14:25:52 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-09 14:25:52 (GMT)
commit26ae6455014e0155cf37a3a0b77ed7323e15ed39 (patch)
tree4a05786d0cbd9c814b0f6b234bc8825b9c5e3ec0 /vm.c
parentad58f04833b6d9f6b0d01c5fc8adc61df6d088cc (diff)
vm.c: super in bmethod
* vm_eval.c (vm_call_super): allow bound proc method to call super method. * vm_insnhelper.c (vm_yield_with_cfunc): push defined class and bound proc method entry to the control frame. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index cb34323..017437b 100644
--- a/vm.c
+++ b/vm.c
@@ -825,7 +825,8 @@ invoke_block_from_c(rb_thread_t *th, const rb_block_t *block,
return ret;
}
else {
- return vm_yield_with_cfunc(th, block, self, argc, argv, blockptr);
+ return vm_yield_with_cfunc(th, block, self, defined_class,
+ argc, argv, blockptr);
}
}