refactor: add Error to isSerializableObject() (#20886)
This commit is contained in:
parent
584a494b83
commit
a034f5db0d
2 changed files with 1 additions and 5 deletions
|
@ -16,6 +16,7 @@ const serializableTypes = [
|
||||||
Number,
|
Number,
|
||||||
String,
|
String,
|
||||||
Date,
|
Date,
|
||||||
|
Error,
|
||||||
RegExp,
|
RegExp,
|
||||||
ArrayBuffer
|
ArrayBuffer
|
||||||
]
|
]
|
||||||
|
|
|
@ -64,11 +64,6 @@ function wrapArgs (args, visited = new Set()) {
|
||||||
type: 'remote-object',
|
type: 'remote-object',
|
||||||
id: v8Util.getHiddenValue(value, 'atomId')
|
id: v8Util.getHiddenValue(value, 'atomId')
|
||||||
}
|
}
|
||||||
} else if (value instanceof Error) {
|
|
||||||
return {
|
|
||||||
type: 'value',
|
|
||||||
value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
|
|
Loading…
Reference in a new issue