-
- Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.web streamsweb-standardsIssues and PRs related to Web APIsIssues and PRs related to Web APIs
Description
When using structuredClone with and transferring the original in Node.js, the resulting clone's prototype is not the same as the original's. However, in other environments, the prototype remains consistent.
const original = new ReadableStream(); const transfer = structuredClone(original, { transfer: [original] }); console.log(Object.getPrototypeOf(transfer) === ReadableStream.prototype);In Node.js, the above snippet logs false, however, in other environments, it logs true.
pmarchini, tonivj5 and hwanders
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.web streamsweb-standardsIssues and PRs related to Web APIsIssues and PRs related to Web APIs