mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: add Error to isSerializableObject() (#20886)
This commit is contained in:
committed by
Jeremy Apthorp
parent
584a494b83
commit
a034f5db0d
@@ -16,6 +16,7 @@ const serializableTypes = [
|
||||
Number,
|
||||
String,
|
||||
Date,
|
||||
Error,
|
||||
RegExp,
|
||||
ArrayBuffer
|
||||
]
|
||||
|
||||
@@ -64,11 +64,6 @@ function wrapArgs (args, visited = new Set()) {
|
||||
type: 'remote-object',
|
||||
id: v8Util.getHiddenValue(value, 'atomId')
|
||||
}
|
||||
} else if (value instanceof Error) {
|
||||
return {
|
||||
type: 'value',
|
||||
value
|
||||
}
|
||||
}
|
||||
|
||||
const meta = {
|
||||
|
||||
Reference in New Issue
Block a user