mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check for refinements in gen_invokesuper
This commit is contained in:
parent
0fb2926097
commit
3fedf8329d
1 changed files with 5 additions and 0 deletions
|
@ -2929,6 +2929,11 @@ gen_invokesuper(jitstate_t *jit, ctx_t *ctx)
|
|||
|
||||
VALUE current_defined_class = me->defined_class;
|
||||
ID mid = me->def->original_id;
|
||||
|
||||
// vm_search_normal_superclass
|
||||
if (BUILTIN_TYPE(current_defined_class) == T_ICLASS && FL_TEST_RAW(RBASIC(current_defined_class)->klass, RMODULE_IS_REFINEMENT)) {
|
||||
return YJIT_CANT_COMPILE;
|
||||
}
|
||||
VALUE comptime_superclass = RCLASS_SUPER(RCLASS_ORIGIN(current_defined_class));
|
||||
|
||||
const struct rb_callinfo *ci = cd->ci;
|
||||
|
|
Loading…
Reference in a new issue