whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.01k stars 2.62k forks source link

Export structuredClone steps #9466

Open saschanaz opened 1 year ago

saschanaz commented 1 year ago

Some specs are directly calling structuredSerialize and again immediately structuredDeserialize to achieve the same, per webref: https://github.com/search?q=repo%3Aw3c%2Fwebref+structuredDeserialize+path%3A%2F%5Eed%5C%2F%2F+path%3A%2F%5Eed%5C%2Flinks%5C%2F%2F&type=code

Maybe worth exporting some helper?

(From https://github.com/whatwg/streams/issues/1285)

annevk commented 1 year ago

Assuming none of those also mean to store it, sounds like you've found a pattern worth abstracting indeed.