-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional structured clone tests
The following behaviors mandated by the spec weren't tested: - Serializing a non-serializable platform object, or transferring a non-transferable platform object, should fail. - Platform objects must deserialize even if their interface has been deleted from the realm's global. - Objects which have serializable or transferable interfaces in their inheritance hierarchy must deserialize as instances of the closest such interface. - Transferring again a detached object will fail. This change also passes the test object as an additional parameter to the `f` function of structured clone tests, to make it possible to test that a promise rejects.
- Loading branch information
Andreu Botella
authored
Sep 16, 2021
1 parent
ababf6c
commit 90c5aa6
Showing
3 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters