Display buffer data properly for truncated buffers under Object property

pull/1122/head
Nick O'Leary 2017-01-16 17:43:39 +00:00
parent c794ca85fd
commit 0646b0060e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ RED.utils = (function() {
if (originalLength === undefined) {
originalLength = data.length;
}
if (data.__encoded__) {
data = data.data;
}
type = obj.type.toLowerCase();
} else if (/buffer/.test(typeHint)) {
type = 'buffer';