vm.c (OP_ENTER): need to update ci->nk when kd is set; fix #5741

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-06 13:57:12 +09:00
parent 7e8a4212fb
commit 4225ae4176
+1
View File
@@ -2090,6 +2090,7 @@ RETRY_TRY_BLOCK:
if (mrb_nil_p(kdict))
kdict = mrb_hash_new_capa(mrb, 0);
regs[kw_pos] = kdict; /* set kwhash */
ci->nk = 15;
}
/* format arguments for generated code */