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
|
@ -35,7 +35,7 @@ const wrapArgs = function (args, visited) {
|
|||
type: 'buffer',
|
||||
value: Array.prototype.slice.call(value, 0)
|
||||
}
|
||||
} else if (isTypedArray(value.buffer)) {
|
||||
} else if (isTypedArray(value)) {
|
||||
return {
|
||||
type: 'typed-array',
|
||||
value: Array.prototype.slice.call(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue