mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_method.c: update assertion [ci skip]
* vm_method.c (prepare_callable_method_entry): update assertion as defined_class may be T_MODULE not only I_ICLASS since r56213. [Feature #12534] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
95c044c4a9
commit
a23878c3f5
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ prepare_callable_method_entry(VALUE defined_class, ID id, const rb_method_entry_
|
|||
const rb_callable_method_entry_t *cme;
|
||||
|
||||
if (me && me->defined_class == 0) {
|
||||
VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS));
|
||||
VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS) || RB_TYPE_P(defined_class, T_MODULE));
|
||||
VM_ASSERT(me->defined_class == 0);
|
||||
|
||||
if ((mtbl = RCLASS_CALLABLE_M_TBL(defined_class)) == NULL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue