-
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
src: return MaybeLocal in AsyncWrap::MakeCallback #14549
Conversation
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.
async-wrap.* LGTM. Other parts rubber-stamp LGTM.
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. It would be nice as a follow-up to replace all the non-context calls to Int32Value(), IntegerValue(), etc. with their context overloads.
Landed in 98bae29. CI on master: https://ci.nodejs.org/job/node-test-commit-linuxone/7700/ |
PR-URL: #14549 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #14549 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
MakeCallback
can return emptyLocal
s, so it is a good idea to useMaybeLocal
s here as @trevnorris suggested.I might have missed some uses where the return value is not used, but the code compiles and tests pass, plus these changes should not change the behavior of
MakeCallback
anyway.Partial CI: https://ci.nodejs.org/job/node-test-commit-linuxone/7638/
Linter CI: https://ci.nodejs.org/job/node-test-linter/10833/
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
src