mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* eval.c (rb_call_super): propagate previous block if a block is
given. [ruby-talk:77577] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c49c8a942e
commit
fd5bdcd21c
2 changed files with 6 additions and 1 deletions
2
eval.c
2
eval.c
|
@ -5235,7 +5235,7 @@ rb_call_super(argc, argv)
|
|||
klass = k;
|
||||
}
|
||||
|
||||
PUSH_ITER(ruby_iter->iter?ITER_PRE:ITER_NOT);
|
||||
PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT);
|
||||
result = rb_call(RCLASS(klass)->super, self, ruby_frame->orig_func, argc, argv, 3);
|
||||
POP_ITER();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue