diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-04 10:53:21 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-04 10:53:21 +0000 |
commit | beb486d55e90328a825b7dee7dec39b87182fa10 (patch) | |
tree | afc20b402bc353f9a0b87dc69ba22a1fb316606c | |
parent | 826aa8c376adabddf012b0858d12398a95a262db (diff) | |
download | ruby-beb486d55e90328a825b7dee7dec39b87182fa10.tar.gz |
* insns.def (defined): should respect #respond_to_missing? as
#respond_to? does.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | insns.def | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -3,6 +3,11 @@ Fri Dec 4 16:50:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (k_def): adjust the location of method definition to the line of def. [Bug #2427] +Fri Dec 4 19:05:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org> + + * insns.def (defined): should respect #respond_to_missing? as + #respond_to? does. + Fri Dec 4 15:50:18 2009 Shugo Maeda <shugo@ruby-lang.org> * vm_eval.c (yield_under): does not yield self, and passes blockptr @@ -799,6 +799,8 @@ defined } } } + if (RTEST(rb_funcall(v, rb_intern("respond_to_missing?"), 2, obj, Qfalse))) + expr_type = "method"; break; } case DEFINED_YIELD: |