From b89cbf192b09dcdd6df6256a0c8d61e17664e2ad Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 7 Feb 2003 06:30:18 +0000 Subject: [PATCH] * eval.c (proc_invoke): should propagate self to super methods. [ruby-dev:19510] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index d2330e440a..9bbfba0bf1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 07 15:30:15 2003 Nobuyoshi Nakada + + * eval.c (proc_invoke): should propagate self to super + methods. [ruby-dev:19510] + Thu Feb 6 19:04:32 2003 Yukihiro Matsumoto * re.c (rb_reg_initialize_m): shoule not preset "kcode" unless diff --git a/eval.c b/eval.c index dc26c1c4a8..a2cc8bb640 100644 --- a/eval.c +++ b/eval.c @@ -6619,6 +6619,7 @@ proc_invoke(proc, args, pcall, self) /* PUSH BLOCK from data */ old_block = ruby_block; _block = *data; + _block.frame.self = self; ruby_block = &_block; PUSH_ITER(ITER_CUR);