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 | 4094f5ea2408e548906458ee9fd3ceac7f9a28ed (patch) | |
| tree | e27a5fa2c586fa8f93384f54a0169b3ab545bdc3 | |
| parent | 12642232b212cf5e28d09c92288054f32d962e42 (diff) | |
| download | ruby-4094f5ea2408e548906458ee9fd3ceac7f9a28ed.tar.gz ruby-4094f5ea2408e548906458ee9fd3ceac7f9a28ed.tar.xz ruby-4094f5ea2408e548906458ee9fd3ceac7f9a28ed.zip | |
* eval.c (rb_call_super): should propagate previous block for
super call. [ruby-talk:77884]
git-svn-id: http://svn.ruby-lang.org/repos/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(); |
