Skip to content

Commit

Permalink
Fixes #95
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 384694dbb0d5f7f82657f9c5c9343ac4054661523627d7ba9cdd2faa8eac2b9c
  • Loading branch information
pmacdona committed Aug 23, 2022
1 parent 5e94278 commit 42c694c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jsiEval.c
Expand Up @@ -1742,6 +1742,10 @@ Jsi_RC jsiEvalCodeSub(jsi_Pstate *ps, Jsi_OpCodes *opcodes,
}
case OP_TYPEOF: {
const char *typ;
if (fp->Sp<=0) {
rc = Jsi_LogError("Invalid lookup/push");
break;
}
Jsi_Value *v = _jsi_TOP;
if (v->vt == JSI_VT_VARIABLE) {
v = v->d.lval;
Expand Down

0 comments on commit 42c694c

Please sign in to comment.