Fixed ecall() invoked too early; fix #3464

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-02-27 18:40:35 +09:00
parent 3fc9bf3d5f
commit 50bbdbb11b
-3
View File
@@ -1628,9 +1628,6 @@ RETRY_TRY_BLOCK:
ci = mrb->c->ci;
if (ci == mrb->c->cibase) {
mrb->c->stack = stk;
while (eidx > 0) {
ecall(mrb, --eidx);
}
if (ci->ridx == 0) {
if (mrb->c == mrb->root_c) {
mrb->c->stack = mrb->c->stbase;