Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport Serializable WebIDL attribute with build-time code generation #21715
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://html.spec.whatwg.org/multipage/structured-data.html#serializable-objects
There's a bunch of hand-written code in https://github.com/servo/servo/blob/master/components/script/dom/bindings/structuredclone.rs to support serializing Blob values via postMessage that would need to be duplicated to support other types. It would be better to do the following:
serialization_stepsanddeserialization_stepsmethods for the underlying object