fix: don't overwrite global constructor names in remote (#20637)
* fix: don't overwrite global constructor names in remote * fake constructor names better, and improve error serialization
This commit is contained in:
parent
820dab295f
commit
b155ebeeb3
3 changed files with 26 additions and 10 deletions
|
@ -64,6 +64,11 @@ 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…
Add table
Add a link
Reference in a new issue