Permalink
Browse files

Update ci->mid according to surrounding scope; fix #3490

  • Loading branch information...
matz committed Mar 10, 2017
1 parent 2f299cf commit ff262f2133a5ffed2051e50a3fbcacf4c6920ecd
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -569,6 +569,7 @@ eval_under(mrb_state *mrb, mrb_value self, mrb_value blk, struct RClass *c)
p = mrb_proc_ptr(blk);
ci->proc = p;
ci->argc = 1;
ci->mid = ci[-1].mid;
if (MRB_PROC_CFUNC_P(p)) {
stack_extend(mrb, 3, 0);
mrb->c->stack[0] = self;

0 comments on commit ff262f2

Please sign in to comment.