Permalink
Browse files

Should restore to the root fiber for each interaction; fix #3537

  • Loading branch information...
matz committed Apr 5, 2017
1 parent 7f37c2f commit 60d20e1848c4049d725e482a0288eba4e7cc9304
Showing with 2 additions and 0 deletions.
  1. +2 −0 mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -551,6 +551,8 @@ main(int argc, char **argv)
mrb_top_self(mrb),
stack_keep);
stack_keep = proc->body.irep->nlocals;
/* restore to fiber */
mrb->c = mrb->root_c;
/* did an exception occur? */
if (mrb->exc) {
p(mrb, mrb_obj_value(mrb->exc), 0);

0 comments on commit 60d20e1

Please sign in to comment.