-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
module: rename anonymous functions #20021
Conversation
Please see discussion in original issue #8913 (comment). I think consensus was to not name function on prototypes as the inferred name is actually better. |
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.
Unfortunately, none of these functions needs to be renamed. Everything is assigned to a prototype is generally ok.
@mcollina I don't think that's correct. The first function should still be renamed? |
Oh I just saw the others. yes, the first function should be renamed! Good spot! |
Alright i'll keep that first function 👍 |
I see this one too, https://github.com/nodejs/node/pull/20021/files#diff-0b93f5d72b0d34f5b972b661935344c3L196 in domain.js. That can be can be removed right? |
@dooven yes I think so. |
@dooven There's one more of those lower down in the file |
Thanks. Will update that |
Not sure how this job failed |
Re-running Linux CI, although it looks like it's been a while since there's been a green one so something might be up: https://ci.nodejs.org/job/node-test-commit-linux/18005/ |
OK, I think refack fixed the failing-to-build Linux host. Let's try again. Linux CI: https://ci.nodejs.org/job/node-test-commit-linux/18009/ |
Last Linux re-run was green. This is good to land if there are no objections from any Collaborators after 72 hours has passed. |
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
PR-URL: #20021 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Landed in ca41a30 Congratulations @dooven on your first commit to Node.js core! 🎉🎉🎉 |
PR-URL: #20021 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This is my first contribution 👋
#8913
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes