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;
}
if (value === undefined) {
return;
}
try {
puts(JSON.stringify(value));
} catch (e) {

Loading…
Cancel
Save