diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 02:11:59 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 02:11:59 +0000 |
commit | 9e449748744cbb28ede16ecb3064e3fcb0899022 (patch) | |
tree | 9d61dc0828e816c66f91aebdf2b2ee7a4e8411f2 /proc.c | |
parent | 696ebcd8cafece7c0ed6407af9679699a16a5c5a (diff) | |
download | ruby-9e449748744cbb28ede16ecb3064e3fcb0899022.tar.gz |
* revert r37993 to avoid SEGV in tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -917,7 +917,7 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope) rb_method_flag_t flag = NOEX_UNDEF; again: - me = rb_method_entry_with_refinements(klass, id, &meb, &defined_class); + me = rb_method_entry(klass, id, &defined_class); if (UNDEFINED_METHOD_ENTRY_P(me)) { ID rmiss = rb_intern("respond_to_missing?"); VALUE sym = ID2SYM(id); @@ -1682,8 +1682,6 @@ rb_method_entry_arity(const rb_method_entry_t *me) default: break; } - case VM_METHOD_TYPE_REFINED: - return -1; } } rb_bug("rb_method_entry_arity: invalid method entry type (%d)", def->type); |