diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-28 12:50:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-28 12:50:32 +0900 |
| commit | 03fde3576055ca00ddd403ffb29ee1622869dbb6 (patch) | |
| tree | 57316d9baba3396d47e41f1885d1be72394e1e98 /src | |
| parent | 8b4660dfc7dc675a40945a66d80ba12aa47fb15a (diff) | |
| download | mruby-03fde3576055ca00ddd403ffb29ee1622869dbb6.tar.gz mruby-03fde3576055ca00ddd403ffb29ee1622869dbb6.zip | |
restore proc after restoring from fiber; ref #1766
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
