-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Closed
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
node/lib/internal/fs/promises.js
Line 524 in d68dd62
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!
essential-existence and mihilmy
Metadata
Metadata
Assignees
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.