diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-22 15:08:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-22 15:08:18 +0900 |
| commit | e26e11860466676e5713fa0d9ab268ea8dbdcef9 (patch) | |
| tree | b3e9b84b198b7b78b81923dd124f7a45b1d3f8aa /src/vm.c | |
| parent | 5513fcee22ceab9293bff7815f961616c1fa3e83 (diff) | |
| download | mruby-e26e11860466676e5713fa0d9ab268ea8dbdcef9.tar.gz mruby-e26e11860466676e5713fa0d9ab268ea8dbdcef9.zip | |
Use env preserved in Proc structure in ecall(); fix #3612
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -315,6 +315,7 @@ ecall(mrb_state *mrb, int i) ci->acc = CI_ACC_SKIP; ci->argc = 0; ci->proc = p; + ci->env = p->env; ci->nregs = p->body.irep->nregs; ci->target_class = p->target_class; mrb->c->stack = mrb->c->stack + ci[-1].nregs; |
