fix inspection of zero

pull/22966/head
Fedor Indutny 2011-09-20 15:14:41 +07:00 committed by Ryan Dahl
parent 44bebc0d52
commit ff05beeef3
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
return;
} else if (handle.type === 'function') {
val = function() {};
} else if (handle.value) {
} else if (handle.value !== undefined) {
val = handle.value;
} else if (handle.type === 'undefined') {
val = undefined;