mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
restore proc after restoring from fiber; ref #1766
This commit is contained in:
@@ -954,6 +954,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int
|
||||
ci = mrb->c->ci;
|
||||
if (!ci->target_class) { /* return from context modifying method (resume/yield) */
|
||||
if (!MRB_PROC_CFUNC_P(ci[-1].proc)) {
|
||||
proc = ci[-1].proc;
|
||||
irep = ci[-1].proc->body.irep;
|
||||
pool = irep->pool;
|
||||
syms = irep->syms;
|
||||
|
||||
Reference in New Issue
Block a user