diff --git a/lib/internal/streams/buffer_list.js b/lib/internal/streams/buffer_list.js index e64b5d87f3e15e3..2dc803d6fa0425b 100644 --- a/lib/internal/streams/buffer_list.js +++ b/lib/internal/streams/buffer_list.js @@ -3,8 +3,8 @@ const { StringPrototypeSlice, SymbolIterator, - Uint8Array, TypedArrayPrototypeSet, + Uint8Array, } = primordials; const { Buffer } = require('buffer'); diff --git a/lib/internal/streams/writable.js b/lib/internal/streams/writable.js index 2e316aaca3eb21c..2324dc579dc5142 100644 --- a/lib/internal/streams/writable.js +++ b/lib/internal/streams/writable.js @@ -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());