Skip to content

Commit

Permalink
Update ci->mid according to surrounding scope; fix #3490
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Mar 10, 2017
1 parent 2f299cf commit ff262f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff262f2

Please sign in to comment.