diff --git a/lib/repl.js b/lib/repl.js index b35afac769..23c70d4585 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -165,6 +165,10 @@ function printValue (value) { return; } + if (value === undefined) { + return; + } + try { puts(JSON.stringify(value)); } catch (e) {