summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mirb/tools
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-04-12 11:01:23 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-04-12 11:01:23 +0900
commit4e84bdb507885bd37b4b0fa6b6359ac8c8b7b886 (patch)
tree9dabc26422c0dc570fbaea3f81d0fde71f1e1f42 /mrbgems/mruby-bin-mirb/tools
parent0fb05eb55f881b3508584cb3b199bddd37dc8825 (diff)
downloadmruby-4e84bdb507885bd37b4b0fa6b6359ac8c8b7b886.tar.gz
mruby-4e84bdb507885bd37b4b0fa6b6359ac8c8b7b886.zip
Let 'mrb_vm_run()` to restore the calling fiber; ref #3537
Diffstat (limited to 'mrbgems/mruby-bin-mirb/tools')
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
index deabd591c..d633a09b2 100644
--- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -551,8 +551,6 @@ done:
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);