mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
merge revision(s) 25975:
* eval.c (proc_invoke): unbound block created by define_method cannot call super. [ruby-core:26984] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@26091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b9d74fd1c1
commit
fd13ad8cdc
4 changed files with 28 additions and 4 deletions
3
eval.c
3
eval.c
|
@ -8872,7 +8872,8 @@ proc_invoke(proc, args, self, klass)
|
|||
_block = *data;
|
||||
_block.block_obj = bvar;
|
||||
if (self != Qundef) _block.frame.self = self;
|
||||
if (klass) _block.frame.last_class = klass;
|
||||
_block.frame.last_class = klass;
|
||||
if (!klass) _block.frame.last_func = 0;
|
||||
_block.frame.argc = RARRAY(tmp)->len;
|
||||
_block.frame.flags = ruby_frame->flags;
|
||||
if (_block.frame.argc && DMETHOD_P()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue