* 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:
nobu 2003-08-01 04:45:19 +00:00
parent c49c8a942e
commit fd5bdcd21c
2 changed files with 6 additions and 1 deletions

2
eval.c
View file

@ -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();