diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-15 01:14:03 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-15 01:14:03 +0000 |
| commit | 0ba9eca2dbb9e3b3b32365a89ea23c3ad2432dfe (patch) | |
| tree | 50ebc7f6220a2c444400a73dbd0c669aa821ce2d | |
| parent | a7987fcc0f1f44a8de033233cbb65dd689cc0091 (diff) | |
| download | ruby-0ba9eca2dbb9e3b3b32365a89ea23c3ad2432dfe.tar.gz ruby-0ba9eca2dbb9e3b3b32365a89ea23c3ad2432dfe.tar.xz ruby-0ba9eca2dbb9e3b3b32365a89ea23c3ad2432dfe.zip | |
* eval.c (yield_under_i): should not pass self as an argument to
the block for instance_eval. [ruby-core:07364]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | eval.c | 2 |
2 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,11 @@ +Wed Feb 15 10:09:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * 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 <matz@ruby-lang.org> - * 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 <matz@ruby-lang.org> @@ -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 */ |
