We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 607f11c commit 722b244Copy full SHA for 722b244
1 file changed
docs/parse.js
@@ -84,6 +84,13 @@ function inspect(object) {
84
function _inspect(root, object, depth, stack) {
85
switch (typeof object) {
86
case 'object':
87
+ case 'null': // ES 5.1
88
+ if (!object) {
89
+ //null
90
+ root.appendChild(document.createTextNode('null'));
91
+ break;
92
+ }
93
+
94
var level = stack.indexOf(object);
95
if (level !== -1) {
96
root.appendChild(document.createTextNode(buildPath(depth - level)));
0 commit comments