fix inspection of zero
authorFedor Indutny <fedor.indutny@gmail.com>
Tue, 20 Sep 2011 08:14:41 +0000 (15:14 +0700)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 20 Sep 2011 15:35:15 +0000 (08:35 -0700)
lib/_debugger.js

index 9bac859eba8aff678523c11e91f4ab5967445a9c..1f6f9fe7d5ee88caa6c8ffb629cdefa862fa34e7 100644 (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;