Handle undefined value in Debug view of Array and Object

Fixes #2696
This commit is contained in:
Nick O'Leary
2020-09-07 21:05:27 +01:00
parent 5cf489a270
commit baffe4861c
4 changed files with 36 additions and 1 deletions

View File

@@ -771,6 +771,11 @@ function encodeObject(msg,opts) {
} else if (value.constructor.name === "Socket") {
value = "[internal]"
}
} else if (value === undefined) {
value = {
__enc__: true,
type: "undefined",
}
}
return value;
}," ");