Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1736789 [wpt PR 31328] - Throw
DataCloneError
when transferring…
… non-transferable objects, a=testonly Automatic update from web-platform-tests Throw `DataCloneError` when transferring non-transferable objects Currently attempting to transfer non-transferable objects using the structured clone algorithm throws a `TypeError`, rather than a `DataCloneError` `DOMException` as per the spec. This seems like a holdover from the original definition of transferable objects as the `Transferable` WebIDL type, since transfer lists would be defined as `sequence<Transferable>` and so would throw a `TypeError` on conversion. whatwg/html#727 changed transfer lists to be `sequence<object>` and changed the `StructuredCloneWithTransfer` algorithm (now `StructuredSerializeWithTransfer`) to throw a `DataCloneError` `DOMException` if any element in the transfer list is not transferable. Bug: 816447 Change-Id: I9f4f88a2d7a593766f394256606a688f299c7b57 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3229544 Reviewed-by: Yuki Shiino <[email protected]> Reviewed-by: Kentaro Hara <[email protected]> Commit-Queue: Yuki Shiino <[email protected]> Cr-Commit-Position: refs/heads/main@{#934398} -- wpt-commits: 4287b41333755fc3a4909a06ecb0780623c637fc wpt-pr: 31328
- Loading branch information