Don't serialize ArrayBuffer as Array
This commit is contained in:
parent
363a02b82d
commit
01e69353d5
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ const wrapArgs = function (args, visited) {
|
|||
} else if (ArrayBuffer.isView(value)) {
|
||||
return {
|
||||
type: 'buffer',
|
||||
value: Array.prototype.slice.call(value, 0)
|
||||
value: Buffer.from(value)
|
||||
}
|
||||
} else if (value instanceof Date) {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue