diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 239b3887cb..7cf816a66a 100644 --- a/vm_method.c +++ b/vm_method.c @@ -318,7 +318,9 @@ rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *opts, rb_method_ default: rb_bug("rb_add_method: unsupported method type (%d)\n", type); } - method_added(klass, mid); + if (type != VM_METHOD_TYPE_UNDEF) { + method_added(klass, mid); + } return me; } |