Don't serialize ArrayBuffer as Array
This commit is contained in:
parent
363a02b82d
commit
01e69353d5
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ let valueToMeta = function (sender, value, optimizeSimpleObject = false) {
|
|||
meta.members = getObjectMembers(value)
|
||||
meta.proto = getObjectPrototype(value)
|
||||
} else if (meta.type === 'buffer') {
|
||||
meta.value = Array.prototype.slice.call(value, 0)
|
||||
meta.value = Buffer.from(value)
|
||||
} else if (meta.type === 'promise') {
|
||||
// Add default handler to prevent unhandled rejections in main process
|
||||
// Instead they should appear in the renderer process
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue