Skip to content

Commit

Permalink
fixup! stream: refactor to use more primordials
Browse files Browse the repository at this point in the history
Co-authored-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
aduh95 and RaisinTen committed Feb 1, 2021
1 parent b93fda8 commit f72fa25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/streams/buffer_list.js
Expand Up @@ -3,8 +3,8 @@
const {
StringPrototypeSlice,
SymbolIterator,
Uint8Array,
TypedArrayPrototypeSet,
Uint8Array,
} = primordials;

const { Buffer } = require('buffer');
Expand Down
1 change: 0 additions & 1 deletion lib/internal/streams/writable.js
Expand Up @@ -279,7 +279,6 @@ ObjectDefineProperty(Writable, SymbolHasInstance, {
},
});


// Otherwise people can pipe Writable streams, which is just wrong.
Writable.prototype.pipe = function() {
errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
Expand Down

0 comments on commit f72fa25

Please sign in to comment.