The #3871 fix caused wrong break from proc-closure error; fix #3996

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-04-13 21:56:45 +09:00
parent 4df0380f1e
commit e3e87ee26a
-3
View File
@@ -2055,9 +2055,6 @@ RETRY_TRY_BLOCK:
else {
struct REnv *e = MRB_PROC_ENV(proc);
if (e == mrb->c->cibase->env && proc != mrb->c->cibase->proc) {
goto L_BREAK_ERROR;
}
if (e->cxt != mrb->c) {
goto L_BREAK_ERROR;
}