preserve ICLASS in ci->target_class; fix #2657; ensuring #1467 #1470 #1493 still works

parent bcf8ad87
......@@ -1080,12 +1080,7 @@ RETRY_TRY_BLOCK:
ci->mid = mid;
ci->proc = m;
ci->stackent = mrb->c->stack;
if (c->tt == MRB_TT_ICLASS) {
ci->target_class = c->c;
}
else {
ci->target_class = c;
}
ci->pc = pc + 1;
ci->acc = a;
......
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