-
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: throw errors in JS land in *stat{Sync} APIs #17914
Conversation
CI: https://ci.nodejs.org/job/node-test-pull-request/12341/ EDIT: New CI with windows-only test: https://ci.nodejs.org/job/node-test-pull-request/12351/ |
btw, I strongly recommend checking these changes against the userland |
6f176a9
to
60de068
Compare
Added windows-only test to cover calling |
CI is green with unrelated failures. @jasnell @nodejs/tsc please review, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The unit tests of node-glob passed locally with this branch. CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1185/ |
CITGM failures look unrelated compared to master. This needs one more TSC approval to land ping @jasnell @nodejs/tsc please review, thanks |
60de068
to
25ec33f
Compare
CI failures are unrelated. Ping @jasnell @nodejs/tsc please review, thanks |
Ping @nodejs/tsc still needs one more TSC approval to land |
If that can help: I approve the change but do not feel confident enough to review the C++ part. |
25ec33f
to
a262c87
Compare
Rebased again. CI: https://ci.nodejs.org/job/node-test-pull-request/12560/ @nodejs/tsc still needs one more TSC approval to land...please reveiw |
@jasnell Thanks! There were some infra issues and known flakes in the last round of CI. Just to be sure: https://ci.nodejs.org/job/node-test-pull-request/12563/ |
CI failures look unrelated. Landed in 316b5ef...1312db5, thanks! |
PR-URL: #17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This is a follow-up of nodejs#17914. When Access and Close functions are called in Sync mode, the number of items in args is validated. These are the only two places in this file where this validation doesn't take place.
This is a follow-up of nodejs#17914. When Access and Close functions are called in Sync mode, the number of items in args is validated. These are the only two places in this file where this validation doesn't take place. PR-URL: nodejs#18203 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This is a follow-up of nodejs#17914. When Access and Close functions are called in Sync mode, the number of items in args is validated. These are the only two places in this file where this validation doesn't take place. PR-URL: nodejs#18203 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
fs