fix(core): rethrow exception during structured cloning serialization (#14671)

- Introduced optional callback for Deno.core.serialize API, that returns
cloning error if there is one.
- Removed try/catch in seralize structured clone function and throw error from
callback.
- Removed "Object with a getter that throws" assertion from WPT.
This commit is contained in:
Mark Ladyshau 2022-05-26 17:14:38 +02:00 committed by GitHub
parent 3aa6d5d8b0
commit 402b497299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 16 deletions

View file

@ -3655,7 +3655,6 @@
"Object Blob object, Blob empty",
"Object Blob object, Blob NUL",
"File basic",
"Object with a getter that throws",
"Serializing a non-serializable platform object fails",
"An object whose interface is deleted from the global must still deserialize",
"A subclass instance will deserialize as its closest serializable superclass",
@ -3682,7 +3681,6 @@
"Object Blob object, Blob empty",
"Object Blob object, Blob NUL",
"File basic",
"Object with a getter that throws",
"Serializing a non-serializable platform object fails",
"An object whose interface is deleted from the global must still deserialize",
"A subclass instance will deserialize as its closest serializable superclass",