Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



For real.


The 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/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: