Enable redefinition check for rbinc methods

This commit is contained in:
Nobuyoshi Nakada 2023-10-18 17:47:48 +09:00 committed by Aaron Patterson
parent 1395838e18
commit 84d8dbe7a5
3 changed files with 78 additions and 7 deletions

View file

@ -522,6 +522,8 @@ rb_method_definition_set(const rb_method_entry_t *me, rb_method_definition_t *de
rb_method_definition_release(me->def);
*(rb_method_definition_t **)&me->def = method_definition_addref(def, METHOD_ENTRY_COMPLEMENTED(me));
if (!ruby_running) add_opt_method_entry(me);
if (opts != NULL) {
switch (def->type) {
case VM_METHOD_TYPE_ISEQ: