Detail the failing assertion [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2024-10-30 14:48:21 +09:00
parent 8cb0722fe8
commit eb1e1d99b7
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -222,7 +222,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
else {
// invalidate cc by invalidating cc->cme
VALUE owner = cme->owner;
VM_ASSERT(BUILTIN_TYPE(owner) == T_CLASS);
VM_ASSERT(RB_TYPE_P(owner, T_CLASS), "owner: %s", rb_obj_info(owner));
VALUE klass_housing_cme;
if (cme->def->type == VM_METHOD_TYPE_REFINED && !cme->def->body.refined.orig_me) {
klass_housing_cme = owner;