Browse Source

When printing, check to see if value is undefined. If so, print nothing.

v0.7.4-release
RayMorgan 15 years ago
parent
commit
028e24c9f5
  1. 4
      lib/repl.js

4
lib/repl.js

@ -165,6 +165,10 @@ function printValue (value) {
return; return;
} }
if (value === undefined) {
return;
}
try { try {
puts(JSON.stringify(value)); puts(JSON.stringify(value));
} catch (e) { } catch (e) {

Loading…
Cancel
Save