-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
src: rename req_wrap with -async/-sync suffix #19628
Conversation
FSReqBase* req_wrap = GetReqWrap(env, args[2]); | ||
if (req_wrap != nullptr) { // access(path, mode, req) | ||
AsyncCall(env, req_wrap, args, "access", UTF8, AfterNoArgs, | ||
FSReqBase* req_wrap_async = GetReqWrap(env, args[2]); |
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.
Just realized it would be even easier to understand if FSReqBase
is FSReqWrapAsync
..LGTM with or without that though.
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.
Sorry about the late reply on this. I don't think that is possible with as GetReqWrap can also return FSReqPromise.
This commit renames the req_wrap variable to use an -async/-sync suffix to avoid cases where the variables were being shadowed. Refs: nodejs#19614
3009260
to
c195864
Compare
node-test-commit-linuxone failure looks unrelatedmake[2]: write error
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 1
gyp ERR! Process leaked file descriptors. See https://jenkins.io/redirect/troubleshooting/process-leaked-file-descriptors for more information node-test-arm-fanned failure looks unrelated06:23:58 not ok 40 parallel/test-cluster-master-kill
06:23:58 ---
06:23:58 duration_ms: 360.112
06:23:58 severity: fail
06:23:58 stack: |-
06:23:58 timeout
06:23:58 ... |
Landed in ed86cc5. |
This commit renames the req_wrap variable to use an -async/-sync
suffix to avoid cases where the variables were being shadowed.
Refs: #19614
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes