Open steida opened 2 years ago
Interesting. Did not know about that function.
MDN says it was introduced in Node.js 17.0.0, and Node.js v16 doesn't EOL until 2024-04-30, so I won't be incorporating this anytime soon, but good to keep in mind!
@chbrown You can use a polyfill https://github.com/ungap/structured-clone or even something like structuredClone || yourCode
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone