|
position = bufferOrOptions.position || null; |
If the value is "0", it is converted to "null", which causes the low-level read position of the file to be taken into account. I suggest:
position = bufferOrOptions.position ?? null;.
Operator || - this evil!
node/lib/internal/fs/promises.js
Line 524 in d68dd62
If the value is "0", it is converted to "null", which causes the low-level read position of the file to be taken into account. I suggest:
position = bufferOrOptions.position ?? null;.Operator
||- this evil!