Files
node/lib/internal
Omar El-Mihilmy fc328f1ab0 fs: nullish coalescing to respect zero positional reads
When the file read position is moved passing zero is
not respected and `null` is used instead. PR fixes the
issues by using nullish coalescing which will return
the rhs only when the lhs is `null` or `undefined`;
respecting the zero.

Fixes: https://github.com/nodejs/node/issues/40715

PR-URL: https://github.com/nodejs/node/pull/40716
Fixes: https://github.com/nodejs/node/issues/40699
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2022-01-25 11:05:39 -05:00
..
2021-09-04 15:14:27 +02:00
2021-09-04 15:14:54 +02:00
2021-09-04 15:14:46 +02:00
2021-07-20 07:11:41 -04:00
2021-09-04 15:14:50 +02:00
2020-01-22 15:33:03 +01:00
…
2021-09-04 15:14:50 +02:00
…
2021-06-11 09:29:47 +02:00
2021-06-11 09:29:52 +02:00
…
2019-12-17 08:11:13 -05:00
2021-09-04 15:14:51 +02:00
2021-09-04 15:14:50 +02:00
2021-09-04 15:14:52 +02:00
2021-09-04 09:23:24 +02:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.