Permalink
Browse files

Use env preserved in Proc structure in ecall(); fix #3612

  • Loading branch information...
matz committed Apr 22, 2017
1 parent 5513fce commit e26e11860466676e5713fa0d9ab268ea8dbdcef9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -315,6 +315,7 @@ ecall(mrb_state *mrb, int i)
ci->acc = CI_ACC_SKIP;
ci->argc = 0;
ci->proc = p;
ci->env = p->env;
ci->nregs = p->body.irep->nregs;
ci->target_class = p->target_class;
mrb->c->stack = mrb->c->stack + ci[-1].nregs;

0 comments on commit e26e118

Please sign in to comment.