Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse HTML structuredClone for owning streams #1285

Open
youennf opened this issue Jun 12, 2023 · 1 comment
Open

Reuse HTML structuredClone for owning streams #1285

youennf opened this issue Jun 12, 2023 · 1 comment

Comments

@youennf
Copy link
Contributor

youennf commented Jun 12, 2023

#1271 is somehow duplicating https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone, except:

  • structuredClone takes an options parameter instead of a transfer list.
  • structuredClone is a visible function to JS

We should try to reuse more of HTML spec here

@MattiasBuelens
Copy link
Collaborator

Ideally, HTML would export an abstract op StructuredClone(value, transferList) and add it to this list, so it can be used by Streams. Then the user-land structuredClone() function would simply forward to that abstract op.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants