Skip to content

Commit

Permalink
get test-stream-aliases-legacy.js passing
Browse files Browse the repository at this point in the history
  • Loading branch information
cjihrig committed Aug 31, 2022
1 parent e1c9c7d commit 7b9b71a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 3,420 deletions.
19 changes: 19 additions & 0 deletions node/_stream.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,22 @@ Duplex.fromWeb = function (pair, options) {

return duplex;
};

// readable-stream attaches these to Readable, but Node.js core does not.
// Delete them here to better match Node.js core.
delete Readable.Duplex;
delete Readable.PassThrough;
delete Readable.Readable;
delete Readable.Stream;
delete Readable.Transform;
delete Readable.Writable;
delete Readable._isUint8Array;
delete Readable._uint8ArrayToBuffer;
delete Readable.addAbortSignal;
delete Readable.compose;
delete Readable.destroy;
delete Readable.finished;
delete Readable.isDisturbed;
delete Readable.isErrored;
delete Readable.isReadable;
delete Readable.pipeline;
Loading

0 comments on commit 7b9b71a

Please sign in to comment.