Commit d32a67e4 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge branch 'master' of github.com:mruby/mruby

parents 6d7b3a7b 0bafa49d
...@@ -601,7 +601,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int ...@@ -601,7 +601,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int
stack_init(mrb); stack_init(mrb);
} }
stack_extend(mrb, irep->nregs, stack_keep); stack_extend(mrb, irep->nregs, stack_keep);
mrb->c->ci->err = pc; ERR_PC_SET(mrb, pc);
mrb->c->ci->proc = proc; mrb->c->ci->proc = proc;
mrb->c->ci->nregs = irep->nregs + 1; mrb->c->ci->nregs = irep->nregs + 1;
regs = mrb->c->stack; regs = mrb->c->stack;
...@@ -2130,7 +2130,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int ...@@ -2130,7 +2130,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int
ecall(mrb, n); ecall(mrb, n);
} }
} }
mrb->c->ci->err = 0; ERR_PC_CLR(mrb);
mrb->jmp = prev_jmp; mrb->jmp = prev_jmp;
if (mrb->exc) { if (mrb->exc) {
return mrb_obj_value(mrb->exc); return mrb_obj_value(mrb->exc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment