Avoid misinterpreting valid objects as encoded arrays in debug

This commit is contained in:
Nick O'Leary
2016-12-20 22:46:56 +00:00
parent 8423e2d245
commit bba3ca8cc0
2 changed files with 2 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ module.exports = function(RED) {
}
if (util.isArray(value) && value.length > debuglength) {
value = {
__encoded__: true,
type: "array",
data: value.slice(0,debuglength),
length: value.length