Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
structuredClone()
should use StructuredDeserializeWithTransfer
`StructuredDeserialize` expects the first argument to be a record containing the [[Type]] slot, as would be returned by `StructuredSerialize` and `StructuredSerializeForStorage`. `StructuredSerializeWithTransfer` returns instead a record with [[Serialized]] and [[TransferDataHolders]] slots, which must be deserialized using the `StructuredDeserializeWithTransfer` operation. It seems like this was an oversight in whatwg#3414.
- Loading branch information