From c177fb88ee9e0f1e925f5c601f0c897e03eeaf8a Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 21:54:22 -0400 Subject: [PATCH] another fix attempt on eval --- src/commands/eval.ts | 3 +++ 1 file changed, 3 insertions(+) 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; }