Comment

Comment by xpressvideoz

What irks me is its default behavior. A function should do safe operations by default. Compared to `JSON.stringify()`, 'structuredClone()` throws an error when it encounters values that cannot be cloned, which is a much saner approach. Probably because they learned from the mistake.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton