wrong termination of mrb_run on exception; close #480

This commit is contained in:
Yukihiro Matsumoto
2012-09-30 08:42:10 +09:00
parent af8f039b90
commit a3d7960a44
-4
View File
@@ -1103,10 +1103,6 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
while (ci[0].ridx == ci[-1].ridx) {
cipop(mrb);
ci = mrb->ci;
if (ci->acc < 0) {
mrb->jmp = prev_jmp;
longjmp(*(jmp_buf*)mrb->jmp, 1);
}
while (eidx > mrb->ci->eidx) {
ecall(mrb, --eidx);
}