Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
ronag committed Aug 24, 2021
commit 36cb1a6937587466194e9f701d9b9898ca7135ae
1 change: 0 additions & 1 deletion lib/internal/streams/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ function willEmitClose(stream) {
module.exports = {
isDisturbed,
kIsDisturbed,
isStream: isNodeStream,
isClosed,
isDestroyed,
isDuplexNodeStream,
Expand Down
4 changes: 2 additions & 2 deletions lib/stream/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {

const {
isIterable,
isStream,
isNodeStream,
} = require('internal/streams/utils');

const pl = require('internal/streams/pipeline');
Expand All @@ -26,7 +26,7 @@ function pipeline(...streams) {
let signal;
const lastArg = streams[streams.length - 1];
if (lastArg && typeof lastArg === 'object' &&
!isStream(lastArg) && !isIterable(lastArg)) {
!isNodeStream(lastArg) && !isIterable(lastArg)) {
const options = ArrayPrototypePop(streams);
signal = options.signal;
validateAbortSignal(signal, 'options.signal');
Expand Down