From 9c22987f6b6925e1da019defba139747e2e4702a Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 15 Feb 2006 01:14:03 +0000 Subject: [PATCH] * eval.c (yield_under_i): should not pass self as an argument to the block for instance_eval. [ruby-core:07364] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 ++++++- eval.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a167bb496b..79982fcb76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ +Wed Feb 15 10:09:51 2006 Yukihiro Matsumoto + + * eval.c (yield_under_i): should not pass self as an argument to + the block for instance_eval. [ruby-core:07364] + Wed Feb 15 09:20:35 2006 Yukihiro Matsumoto - * eval.c (rb_obj_instance_eval): should no singleton classes for + * eval.c (rb_obj_instance_eval): should be no singleton classes for true, false, and nil. [ruby-dev:28186] Tue Feb 14 18:48:33 2006 Yukihiro Matsumoto diff --git a/eval.c b/eval.c index 95cda1cfec..17e07ada46 100644 --- a/eval.c +++ b/eval.c @@ -6578,7 +6578,7 @@ static VALUE yield_under_i(self) VALUE self; { - return rb_yield_0(self, self, ruby_class, YIELD_PUBLIC_DEF, Qfalse); + return rb_yield_0(Qundef, self, ruby_class, YIELD_PUBLIC_DEF, Qfalse); } /* block eval under the class/module context */