node/lib/internal/streams
Nitzan Uziely 9557dda2eb
stream: pipeline accept Buffer as a valid first argument
change isStream to also check existence of on, so it
wont mistake buffers as Streams.

fixes: https://github.com/nodejs/node/issues/37731

PR-URL: https://github.com/nodejs/node/pull/37739
Fixes: https://github.com/nodejs/node/issues/37731
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-03-23 21:15:10 -04:00
..
add-abort-signal.js net: support abortSignal in server.listen 2021-01-12 07:10:27 -05:00
buffer_list.js lib: use remaining typed arrays from primordials 2020-10-07 13:44:21 +00:00
destroy.js tools: enable no-unused-expressions lint rule 2020-12-21 16:49:00 +01:00
duplex.js stream: writableNeedDrain 2020-11-10 11:40:58 -05:00
duplexpair.js lib: replace Symbol global by the primordials Symbol 2019-12-08 13:38:58 +01:00
end-of-stream.js stream: add AbortSignal support to finished 2021-02-28 14:46:20 +01:00
from.js stream: make Readable.from performance better 2021-03-23 21:15:08 -04:00
lazy_transform.js stream: remove unused _transformState 2020-04-30 16:01:52 +02:00
legacy.js stream: fix legacy pipe error handling 2020-09-23 04:33:05 -07:00
passthrough.js stream: move to internal/streams 2020-09-21 08:23:06 +00:00
pipeline.js stream: move duplicated code to an internal module 2021-02-28 14:46:26 +01:00
readable.js stream,util: fix "the the" typo in comments 2021-03-16 12:31:36 -04:00
state.js lib: remove ERR_INVALID_OPT_VALUE and ERR_INVALID_OPT_VALUE_ENCODING 2020-09-11 17:54:42 +03:00
transform.js stream: move to internal/streams 2020-09-21 08:23:06 +00:00
utils.js stream: pipeline accept Buffer as a valid first argument 2021-03-23 21:15:10 -04:00
writable.js Revert "stream: fix .end() error propagation" 2021-02-15 14:55:39 -05:00