mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
826aa8c376
commit
beb486d55e
2 changed files with 7 additions and 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:
|
||||
|
|
Loading…
Reference in a new issue