Node.js allows the structedClone
of objects that do "not have a transferable type."
#54602
Labels
web-standards
Issues and PRs related to Web APIs
The
structuredClone
function in JavaScript behaves differently in Node.js and web browsers when cloning aBlob
object with thetransfer
option. In Node.js, theBlob
is cloned successfully, while in web browsers, aDataCloneError
is thrown. This discrepancy is causing the web platform tests in #54468 to fail.Blob
Uncaught DataCloneError: Failed to execute 'structuredClone' on 'Window': Value at index 0 does not have a transferable type.
The text was updated successfully, but these errors were encountered: