Skip to content

Commit 73a568b

Browse files
committed
Handle const_missing
1 parent d4790d0 commit 73a568b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vm_insnhelper.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -6403,7 +6403,9 @@ vm_ic_update(const rb_iseq_t *iseq, IC ic, VALUE val, const VALUE *reg_ep, const
64036403
{
64046404
if (ruby_vm_const_missing_count > 0) {
64056405
ruby_vm_const_missing_count = 0;
6406-
ic->entry = NULL;
6406+
if (!vm_icc_is_set(ic)) {
6407+
ic->value = Qundef;
6408+
}
64076409
return;
64086410
}
64096411

0 commit comments

Comments
 (0)