mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Enable redefinition check for rbinc methods
This commit is contained in:
parent
1395838e18
commit
84d8dbe7a5
3 changed files with 78 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue