mirror of https://github.com/nodejs/node.git
fix 'null' mirroring
parent
a0556fcbe1
commit
b20c98e427
|
@ -561,6 +561,8 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
|
||||||
return;
|
return;
|
||||||
} else if (handle.type === 'function') {
|
} else if (handle.type === 'function') {
|
||||||
val = function() {};
|
val = function() {};
|
||||||
|
} else if (handle.type === 'null') {
|
||||||
|
val = null;
|
||||||
} else if (handle.value !== undefined) {
|
} else if (handle.value !== undefined) {
|
||||||
val = handle.value;
|
val = handle.value;
|
||||||
} else if (handle.type === 'undefined') {
|
} else if (handle.type === 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue