diff options
-rw-r--r-- | forth.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ function forth(print = console.log) { }, 'then' : () => {/*Doing nothing skips the token*/}, 'if' : (initialIdx, tokens) => { - if (!s.pop()) { + if (!popNum()) { let localIdx = initialIdx; while (tokens[localIdx] && tokens[localIdx] !== 'then') {localIdx++} return localIdx - initialIdx; |