-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: fix .write() not coercing non-string values #1102
Conversation
test is just adapted from |
Fixes: #1098 PR-URL: #1102 Reviewed-By: Brendan Ashworth <[email protected]>
LGTM. Thanks @Fishrock123, merged in |
@brendanashworth since @Fishrock123 is a collaborator it's probably best to let him merge it. I personally would have preferred a bit more time to have some more eyes on this before merging as it's not as trivial as a doc fix. |
@rvagg sorry, you're right, I probably should've let it sizzle - then I buried it with another commit. Won't happen again :) |
The behavior appears to have been incorrect from the start: 7ca77ea#diff-9a205ef7ee967ee32efee02e58b3482dR484 No tests were added when the API was added, and thus it was not caught. |
Should fix #1098
relevant docs: https://github.com/iojs/io.js/blob/v1.x/doc/api/fs.markdown#fswritefd-data-position-encoding-callback
R=anyone