summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-15 01:14:03 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-15 01:14:03 +0000
commit9c22987f6b6925e1da019defba139747e2e4702a (patch)
tree50ebc7f6220a2c444400a73dbd0c669aa821ce2d /eval.c
parentf2525bf0c914f431c7e80bc76380e2b7d4698e4f (diff)
* 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
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
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 */