Skip to content

Commit

Permalink
Fixes #60
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 7f010e1ad78dc0d2d7fc978b651a2d28da327c8a69e1e317fa0e10e429fba72c
  • Loading branch information
pmacdona committed Dec 27, 2021
1 parent 6e26148 commit 3422234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jsiEval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,8 @@ Jsi_RC jsiEvalCodeSub(jsi_Pstate *ps, Jsi_OpCodes *opcodes,
break;
}
case OP_POP: {
if (interp->framePtr->Sp<1)
break;
Jsi_Value *tval = _jsi_TOP;
if ((interp->evalFlags&JSI_EVAL_RETURN) && (ip+1) >= end &&
(Jsi_ValueIsObjType(interp, tval, JSI_OT_ITER)==0 &&
Expand Down

0 comments on commit 3422234

Please sign in to comment.