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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-11-28 20:35:06 +09:00
parent bcf8ad87e6
commit 09c6ca936c
+1 -6
View File
@@ -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->target_class = c;
ci->pc = pc + 1;
ci->acc = a;