Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ext/node/fs): position argument not applied #24009

Merged
merged 1 commit into from
May 28, 2024

Conversation

marvinhagemeister
Copy link
Contributor

We didn't honour the position options of fd.read and fd.write because we checked if the buffer is of type Buffer instead of just Uint8Array. Node does the latter. In doing so I noticed that the file handle id was written to a public property which it definitely shouldn't be. This was probably a typo.

Fixes #23707

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice!

@marvinhagemeister marvinhagemeister merged commit 8c9d1ba into main May 28, 2024
17 checks passed
@marvinhagemeister marvinhagemeister deleted the node-position-arg branch May 28, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node:fs/promises: Neither fd.read nor fd.write honor the position argument
2 participants