mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Just call search_method_protect [Bug #16669]
This commit is contained in:
parent
da5bd0047d
commit
74c8aaef7d
1 changed files with 1 additions and 7 deletions
|
@ -936,13 +936,7 @@ search_method_protect(VALUE klass, ID id, VALUE *defined_class_ptr)
|
||||||
MJIT_FUNC_EXPORTED const rb_method_entry_t *
|
MJIT_FUNC_EXPORTED const rb_method_entry_t *
|
||||||
rb_method_entry(VALUE klass, ID id)
|
rb_method_entry(VALUE klass, ID id)
|
||||||
{
|
{
|
||||||
const rb_method_entry_t *me = search_method(klass, id, NULL);
|
return search_method_protect(klass, id, NULL);
|
||||||
if (me && me->def && me->def->type != VM_METHOD_TYPE_UNDEF) {
|
|
||||||
return me;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline const rb_callable_method_entry_t *
|
static inline const rb_callable_method_entry_t *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue