Kernel#send should preserve nregs in callinfo; close #1970

parent 7d413b70
......@@ -460,6 +460,7 @@ mrb_f_send(mrb_state *mrb, mrb_value self)
ci->mid = name;
ci->target_class = c;
ci->proc = p;
ci->nregs = p->body.irep->nregs;
regs = mrb->c->stack+1;
/* remove first symbol from arguments */
if (ci->argc >= 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