-
-
Notifications
You must be signed in to change notification settings - Fork 32k
module: rename anonymous functions #20021
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
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #20021 Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
This is my first contribution 👋
#8913
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes