* 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
@ -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>
|
Tue Jul 12 16:58:44 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
* lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug.
|
* 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:
|
default:
|
||||||
rb_bug("rb_add_method: unsupported method type (%d)\n", type);
|
rb_bug("rb_add_method: unsupported method type (%d)\n", type);
|
||||||
}
|
}
|
||||||
|
if (type != VM_METHOD_TYPE_UNDEF) {
|
||||||
method_added(klass, mid);
|
method_added(klass, mid);
|
||||||
|
}
|
||||||
return me;
|
return me;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user