Skip to content

Commit ff262f2

Browse files
committed
Update ci->mid according to surrounding scope; fix #3490
1 parent 2f299cf commit ff262f2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/vm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ eval_under(mrb_state *mrb, mrb_value self, mrb_value blk, struct RClass *c)
569569
p = mrb_proc_ptr(blk);
570570
ci->proc = p;
571571
ci->argc = 1;
572+
ci->mid = ci[-1].mid;
572573
if (MRB_PROC_CFUNC_P(p)) {
573574
stack_extend(mrb, 3, 0);
574575
mrb->c->stack[0] = self;

0 commit comments

Comments
 (0)