mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Adjust callinfo env and target_class; ref #3429
This commit is contained in:
@@ -194,7 +194,8 @@ create_proc_from_string(mrb_state *mrb, char *s, int len, mrb_value binding, con
|
||||
e->cioff = c->ci - c->cibase - 1;
|
||||
e->stack = c->ci->stackent;
|
||||
MRB_SET_ENV_STACK_LEN(e, c->ci[-1].proc->body.irep->nlocals);
|
||||
c->ci->env = e;
|
||||
c->ci->target_class = mrb->object_class;
|
||||
c->ci->env = 0;
|
||||
proc->env = e;
|
||||
patch_irep(mrb, proc->body.irep, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user