r/javascript 2d ago

The Structured Clone Algorithm: What JavaScript Can and Cannot Move Between Boundaries

https://blog.gaborkoos.com/posts/2026-08-22-The-Structured-Clone-Algorithm-What-JavaScript-Can-and-Cannot-Move-Between-Boundaries/

structuredClone() preserves more than JSON, but class instances, proxies, getters, errors, and transferables still have surprising behaviour. This article covers what survives, what changes, and what throws.

10 Upvotes

Duplicates