diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-03 14:56:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-03 14:56:54 +0000 |
commit | 096f7a4c89c9f42872e96268995beed4b64af516 (patch) | |
tree | e27a5fa2c586fa8f93384f54a0169b3ab545bdc3 | |
parent | d170fe2cd0380f3e59adf25bd99ac1e560c544be (diff) | |
download | ruby-096f7a4c89c9f42872e96268995beed4b64af516.tar.gz |
* eval.c (rb_call_super): should propagate previous block for
super call. [ruby-talk:77884]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Aug 3 23:56:50 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (rb_call_super): should propagate previous block for + super call. [ruby-talk:77884] + Sun Aug 3 19:25:28 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (call_trace_func): clear exception flag temporarily. @@ -5240,7 +5240,7 @@ rb_call_super(argc, argv) klass = k; } - PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT); + PUSH_ITER(ruby_iter->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(); |