node/lib/internal/streams
Luigi Pinca 2b32985c62
stream: use null for the error argument
When no error occurs, use `null` instead of `undefined` for the `error`
argument of the `writable.write()` and `writable.end()` callbacks.

Fixes: https://github.com/nodejs/node/issues/44290
PR-URL: https://github.com/nodejs/node/pull/44312
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
2022-08-23 07:51:53 +00:00
..
add-abort-signal.js stream: use cause options in AbortError constructors 2021-12-02 12:14:10 -08:00
buffer_list.js stream: check for null instead of falsy in loops 2022-01-22 19:38:06 -08:00
compose.js stream: remove no longer necessary ComposeDuplex 2021-10-23 22:23:35 +00:00
destroy.js stream: pass error on legacy destroy 2022-06-28 09:59:24 +01:00
duplex.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
duplexify.js stream: use cause options in AbortError constructors 2021-12-02 12:14:10 -08:00
end-of-stream.js stream: use kEmptyObject 2022-06-11 12:18:14 +02:00
from.js lib: remove useless statement 2021-09-18 16:05:59 +02:00
lazy_transform.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
legacy.js lib: revert primordials in a hot path 2021-04-19 10:23:01 +02:00
operators.js lib: add Promise methods to avoid-prototype-pollution lint rule 2022-07-26 23:38:24 +01:00
passthrough.js lib: revert primordials in a hot path 2021-04-19 10:23:01 +02:00
pipeline.js stream: finish pipeline if dst closes before src 2022-07-11 11:25:05 +01:00
readable.js stream: initial approach to include strategy options on Readable.toWeb() 2022-07-13 11:14:38 +01: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: fix 0 transform hwm backpressure 2022-07-24 13:55:11 +02:00
utils.js stream: avoid function call where possible 2022-01-17 05:31:30 +00:00
writable.js stream: use null for the error argument 2022-08-23 07:51:53 +00:00