From ad0a912f413a29f858f2612e99f98632a8fc7457 Mon Sep 17 00:00:00 2001 From: marcandre Date: Wed, 4 Nov 2009 03:49:54 +0000 Subject: * proc.c (mnew): Fix scope issue [ruby-core:26069] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ proc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29b56022a..e01f8e03f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Nov 4 12:49:18 2009 Marc-Andre Lafortune + + * proc.c (mnew): Fix scope issue [ruby-core:26069] + Wed Nov 4 08:26:00 2009 Nobuyoshi Nakada * dir.c (dir_check): moved other checks from GetDIR. diff --git a/proc.c b/proc.c index 70403585d..468ca467b 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, 2, sym, Qtrue))) { + if (RTEST(rb_funcall(obj, rmiss, 2, sym, scope ? Qfalse : Qtrue))) { def = ALLOC(rb_method_definition_t); def->type = VM_METHOD_TYPE_MISSING; def->original_id = id; -- cgit