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

Deno should support structured clone for web APIs it supports #22675

Closed
kitsonk opened this issue Mar 3, 2024 · 2 comments
Closed

Deno should support structured clone for web APIs it supports #22675

kitsonk opened this issue Mar 3, 2024 · 2 comments

Comments

@kitsonk
Copy link
Contributor

kitsonk commented Mar 3, 2024

There are several web APIs that should be structured cloneable, but while Deno supports some of the web APIs it doesn't support structured cloning on them. For example, this works in Chrome:

structuredClone(new Blob([]));
// Blob { size: 0, type: '' }

But in Deno you get:

structuredClone(new Blob([]));
// {}

There are the web APIs that Deno supports that should be cloneable:

This also restricts these being stored in Deno KV, which they could be if structured cloning is supported for them.

@petamoriken
Copy link
Contributor

duplicated with #12067

@kitsonk
Copy link
Contributor Author

kitsonk commented Mar 3, 2024

DOH! and I even contributed to that.

@kitsonk kitsonk closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants