Skip to content

Conversation

@cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Apr 10, 2021

The binding layer performs some validation of the encoding and data passed to WriteString(). This commit adds similar validation to the JS layer for better error handling.

Fixes: #38168 (I believe this issue was closed prematurely)

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Apr 10, 2021
@nodejs-github-bot
Copy link
Collaborator

@RaisinTen RaisinTen added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 10, 2021
@RaisinTen
Copy link
Member

RaisinTen commented Apr 10, 2021

nit: Refs -> Fixes in the commit message
(could be addressed while landing)

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Apr 11, 2021

The binding layer performs some validation of the encoding and
data passed to WriteString(). This commit adds similar validation
to the JS layer for better error handling.

PR-URL: nodejs#38183
Fixes: nodejs#38168
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"fs.writeSync" results in an abort

7 participants