From 832e4b0f3c7523b6b2e949e7a0ea5bcb188ac42f Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Wed, 25 Jan 2023 17:24:31 +0530 Subject: [PATCH] stream: remove brandchecks from stream duplexify Refs: https://github.com/nodejs/node/pull/46190 Refs: https://github.com/nodejs/node/pull/46205#discussion_r1070551161 PR-URL: https://github.com/nodejs/node/pull/46315 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Darshan Sen Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- lib/internal/streams/duplexify.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/internal/streams/duplexify.js b/lib/internal/streams/duplexify.js index 68b47f1e8ce9cc..2198542706e4d4 100644 --- a/lib/internal/streams/duplexify.js +++ b/lib/internal/streams/duplexify.js @@ -8,6 +8,8 @@ const { isReadableNodeStream, isWritableNodeStream, isDuplexNodeStream, + isReadableStream, + isWritableStream, } = require('internal/streams/utils'); const eos = require('internal/streams/end-of-stream'); const { @@ -33,16 +35,6 @@ const { FunctionPrototypeCall } = primordials; - -const { - isBrandCheck, -} = require('internal/webstreams/util'); - -const isReadableStream = - isBrandCheck('ReadableStream'); -const isWritableStream = - isBrandCheck('WritableStream'); - // This is needed for pre node 17. class Duplexify extends Duplex { constructor(options) {