Fix TypedArray check, add check when instanceof doesn't work for TypedArrays.
This commit is contained in:
parent
2757046e71
commit
fac330fb50
3 changed files with 4 additions and 3 deletions
|
@ -63,7 +63,7 @@ let valueToMeta = function (sender, value, optimizeSimpleObject = false) {
|
|||
meta.type = 'buffer'
|
||||
} else if (Array.isArray(value)) {
|
||||
meta.type = 'array'
|
||||
} else if (isTypedArray(value.buffer)) {
|
||||
} else if (isTypedArray(value)) {
|
||||
meta.type = 'typed-array'
|
||||
} else if (value instanceof Error) {
|
||||
meta.type = 'error'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue