mirror of https://github.com/nodejs/node.git
When printing, check to see if value is undefined. If so, print nothing.
parent
7674bd5004
commit
028e24c9f5
|
@ -165,6 +165,10 @@ function printValue (value) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (value === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
puts(JSON.stringify(value));
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue