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,
|
||||
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 = {
|
||||
|
|
Loading…
Reference in a new issue