diff --git a/src/commands/eval.ts b/src/commands/eval.ts index ea46f62..5a348c5 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -25,6 +25,9 @@ export default class Eval extends Command { if (typeof evaled === 'object') { evaled = inspect(evaled, { depth: 0 }); } + if (evaled === undefined) { + evaled = 'undefined'; + } } catch (error) { evaled = error.stack; }