-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
structuredClone
Serializing a non-serializable platform object succeeds
#55120
Comments
Request's webidl declaration does not extend anything, therefore it's a platform object. Hopefully this may help someone. |
@nodejs/web-standards @joyeecheung |
This comment was marked as spam.
This comment was marked as spam.
I am a bit curious how undici will adopt this to address this issue. Don't get me wrong, it will address the issue, but the process will probably be like:
The whole thing could be dragged a bit long, and I am thinking should we consider the fast win with a TODO to drop it once the above process is settled? |
It won't be a semver-major issue, changes that are made for spec-compatibility are usually considered bug fixes. This bug was only caught in a WPT - the behavior is far too niche to justify the performance overhead of constructing every Response, Request, FormData, Headers, etc. |
@jazelly just confirming the Unidici PR fixed this, and it'll be good-to-go when the next version of Undici releases? |
Yes, once that's released and bumped in node, this should be resolved. |
I'm gonna close this, as while the latest Node.js doesn't have the Undici needed, it's no longer actionable as an issue. Thx! |
In Node.js, the following snippet succeeds, whereas, in the browser, it throws a
DataCloneError
:This is causing the following WPT to fail:
The text was updated successfully, but these errors were encountered: