From 028e24c9f587d2ae53d831e4198b5c3c701dfc57 Mon Sep 17 00:00:00 2001 From: RayMorgan Date: Thu, 24 Sep 2009 22:16:07 -0700 Subject: [PATCH] When printing, check to see if value is undefined. If so, print nothing. --- lib/repl.js | 4 ++++ 1 file changed, 4 insertions(+) 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) {