mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -1,3 +1,8 @@
|
|||
Fri Aug 1 13:45:14 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_call_super): propagate previous block if a block is
|
||||
given. [ruby-talk:77577]
|
||||
|
||||
Fri Aug 1 09:54:38 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (BEGIN_CALLARGS): should not always reset ruby_iter,
|
||||
|
|
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…
Reference in a new issue