In Node.js, the following snippet succeeds, whereas, in the browser, it throws a `DataCloneError`: ```js structuredClone(new Response()); ``` This is causing the following WPT to fail: ```js structuredCloneBatteryOfTests.push({ description: 'Serializing a non-serializable platform object fails', async f(runner, t) { const request = new Response(); await promise_rejects_dom( t, "DataCloneError", runner.structuredClone(request) ); } }); ```
In Node.js, the following snippet succeeds, whereas, in the browser, it throws a
DataCloneError:This is causing the following WPT to fail: