summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-13 23:08:27 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-13 23:08:27 +0000
commitda930cc53bc2484992d3d30b56153cee3b63a526 (patch)
tree9d33a47ba15957935ea0f27084cca070c806ac83
parent1eadaa848bbc3937210dad38ffe64601b2908dbf (diff)
downloadruby-da930cc53bc2484992d3d30b56153cee3b63a526.tar.gz
ruby-da930cc53bc2484992d3d30b56153cee3b63a526.tar.xz
ruby-da930cc53bc2484992d3d30b56153cee3b63a526.zip
* proc.c (mnew): Method#new checks for respond_to_missing? with private set to true
[ruby-core:26069] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--proc.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cc0f2bb79..01e99271d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Oct 14 08:08:12 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * proc.c (mnew): Method#new checks for respond_to_missing? with
+ private set to true
+ [ruby-core:26069]
+
Tue Oct 13 21:05:01 2009 NARUSE, Yui <naruse@ruby-lang.org>
* tool/enc-unicode.rb,
diff --git a/proc.c b/proc.c
index 5ed3c0184..b7c632c85 100644
--- a/proc.c
+++ b/proc.c
@@ -902,7 +902,7 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope)
VALUE sym = ID2SYM(id);
if (obj != Qundef && !rb_method_basic_definition_p(klass, rmiss)) {
- if (RTEST(rb_funcall(obj, rmiss, 1, sym))) {
+ if (RTEST(rb_funcall(obj, rmiss, 2, sym, Qtrue))) {
def = ALLOC(rb_method_definition_t);
def->type = VM_METHOD_TYPE_MISSING;
def->original_id = id;