You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The REPL should print runtime errors and let you continue.
Actual
The REPL crashes.
Additional Info
$ npx gravlax
> 1 + nil
node:internal/readline/emitKeypressEvents:74
throw err;
^
RuntimeError: Operands must be two numbers/currencies or two strings.
at Interpreter.binary (file:///Users/danvk/github/gravlax/lib/interpreter.js:86:19)
at Interpreter.evaluate (file:///Users/danvk/github/gravlax/lib/interpreter.js:172:21)
at Interface.<anonymous> (file:///Users/danvk/github/gravlax/lib/main.js:32:41)
at Interface.emit (node:events:518:28)
at [_onLine] [as _onLine] (node:internal/readline/interface:416:12)
at [_line] [as _line] (node:internal/readline/interface:887:18)
at [_ttyWrite] [as _ttyWrite] (node:internal/readline/interface:1265:22)
at ReadStream.onkeypress (node:internal/readline/interface:264:20)
at ReadStream.emit (node:events:518:28)
at emitKeys (node:internal/readline/utils:371:14) {
token: { lexeme: '+', line: 1, literal: null, type: '+' }
}
Node.js v20.11.0
The text was updated successfully, but these errors were encountered:
Expected
The REPL should print runtime errors and let you continue.
Actual
The REPL crashes.
Additional Info
The text was updated successfully, but these errors were encountered: