fix inspection of zero

This commit is contained in:
Fedor Indutny
2011-09-20 15:14:41 +07:00
committed by Ryan Dahl
parent 44bebc0d52
commit ff05beeef3

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;