fix 'null' mirroring

pull/22966/head
Fedor Indutny 2011-09-20 17:12:32 +07:00 committed by Ryan Dahl
parent a0556fcbe1
commit b20c98e427
1 changed files with 2 additions and 0 deletions

View File

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