From f72fa254be89e13a1673f733e224ed91cf71ddae Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 1 Feb 2021 07:17:00 -0500 Subject: [PATCH] fixup! stream: refactor to use more primordials Co-authored-by: Darshan Sen --- lib/internal/streams/buffer_list.js | 2 +- lib/internal/streams/writable.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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());