-
Notifications
You must be signed in to change notification settings - Fork 30k
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
fs: unecessary argument validation #29043
Conversation
It's not ensured because the user's |
Should that even be a valid option for |
I’ll update the PR if the consensus is to keep the check. But the error needs to be passed to the callback to ‘Writable’ and not directly emitted. Also do we then also need this check for writev? |
Fixed so that |
70f1792
to
0e1f130
Compare
@Trott this seems ready? |
Extra-cautious CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1970/ (queued) |
@ronag Would you be able to rebase this and take a look at the conflict? Thanks |
@danbev: rebased |
Writable
already assures that onlyBuffer
's are passed to_write
. Also this is not the "correct" way to handle errors inside_write
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes