Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
web-standardsIssues and PRs related to Web APIsIssues and PRs related to Web APIs
Description
The structuredClone function in JavaScript behaves differently in Node.js and web browsers when cloning a Blob object with the transfer option. In Node.js, the Blob is cloned successfully, while in web browsers, a DataCloneError is thrown. This discrepancy is causing the web platform tests in #54468 to fail.
constblob=newBlob();console.log(structuredClone(blob,{transfer: [blob]}));- Node.js Behavior: Successful cloning of the
Blob - Web Browser Behavior:
Uncaught DataCloneError: Failed to execute 'structuredClone' on 'Window': Value at index 0 does not have a transferable type.
Metadata
Metadata
Assignees
Labels
web-standardsIssues and PRs related to Web APIsIssues and PRs related to Web APIs