mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_method.c (rb_add_method): should not call method_added hook
for undef operation. [Bug #5015] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1d4da24e21
commit
ba5d78581a
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jul 12 17:12:45 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* vm_method.c (rb_add_method): should not call method_added hook
|
||||
for undef operation. [Bug #5015]
|
||||
|
||||
Tue Jul 12 16:58:44 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug.
|
||||
|
|
|
@ -304,7 +304,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue