3 ms·
structuredClone() https://developer.mozilla.org/en-US/docs/Web/API/structuredClone https://developer.mozilla.org/en-US/docs/Web/API/structuredC...
by bottlepalm 4y ago
structuredClone()
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone https://developer.mozilla.org/en-US/docs/Web/API/structuredC...
- earthboundkid 4y agoFor real.
- nishs 4y agoThe Chrome dev rel blog post [1] describes limitations of structuredClone: * Prototypes: structuredClone discards the object’s prototype chain. * Functions: structuredClone quietly discards functions. * Non-cloneables: structuredClone throws for some common values, e.g. Node, Error. [1] https://web.dev/structured-clone/ https://web.dev/structured-clone/
- deleted 4y ago[deleted]