refactor: add Error to isSerializableObject() (#20886)

This commit is contained in:
Milan Burda 2019-11-04 23:35:57 +01:00 committed by Jeremy Apthorp
parent 584a494b83
commit a034f5db0d
2 changed files with 1 additions and 5 deletions

View file

@ -16,6 +16,7 @@ const serializableTypes = [
Number,
String,
Date,
Error,
RegExp,
ArrayBuffer
]

View file

@ -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 = {