From bed9a326757d9f9328e7f8102e386a6abab8fdf5 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Wed, 11 Mar 2020 14:34:09 +0100 Subject: [PATCH] fixup: don't depend on private properties --- lib/internal/streams/pipeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/streams/pipeline.js b/lib/internal/streams/pipeline.js index f0a372ea509b24..dcae9e577566aa 100644 --- a/lib/internal/streams/pipeline.js +++ b/lib/internal/streams/pipeline.js @@ -28,8 +28,8 @@ let createReadableStreamAsyncIterator; function isIncoming(stream) { return ( stream.socket && - typeof stream._dump === 'function' && - typeof stream._consuming === 'boolean' && + typeof stream.complete === 'boolean' && + ArrayIsArray(stream.rawTrailers) && ArrayIsArray(stream.rawHeaders) ); }