Fixed a top-level local variable bug in mirb.

`OP_STOP` returned a wrong value.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-09-21 00:49:40 +09:00
parent 346f154ece
commit 9bd2a3b5d9
+1
View File
@@ -2056,6 +2056,7 @@ RETRY_TRY_BLOCK:
struct mrb_context *c;
if (!mrb->c->prev) { /* toplevel return */
regs[irep->nlocals] = v;
goto L_STOP;
}
if (mrb->c->prev->ci == mrb->c->prev->cibase) {