Configure callinfo target_class as CRuby; ref #3429

parent 4dae2853
......@@ -198,7 +198,7 @@ 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->target_class = mrb->object_class;
c->ci->target_class = proc->target_class;
c->ci->env = 0;
proc->env = e;
patch_irep(mrb, proc->body.irep, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment