Avoid executing OP_STOP in eval(); fix #3429

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-02-16 22:40:31 +09:00
parent 5e3c329c98
commit 097da2399a
+4
View File
@@ -131,6 +131,10 @@ patch_irep(mrb_state *mrb, mrb_irep *irep, int bnest)
}
}
break;
case OP_STOP:
irep->iseq[i] = MKOP_AB(OP_RETURN, irep->nlocals, OP_R_NORMAL);
break;
}
}
}