diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-09 14:25:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-09 14:25:52 +0000 |
commit | 26ae6455014e0155cf37a3a0b77ed7323e15ed39 (patch) | |
tree | 4a05786d0cbd9c814b0f6b234bc8825b9c5e3ec0 /vm.c | |
parent | ad58f04833b6d9f6b0d01c5fc8adc61df6d088cc (diff) | |
download | ruby-26ae6455014e0155cf37a3a0b77ed7323e15ed39.tar.gz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } } |