-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Exported method can be static; will never be called directly #29102
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.
Do we need static method?
No, you don't need it, but you might want it (encapsulation principle). :-) I don't see any reason for having this being a symbol with global scope (as opposed to: module scope). |
I think this is okay, but since these are test addons, it really doesn’t make a difference in practice. |
7e7f42f
to
373aa3a
Compare
373aa3a
to
9209b14
Compare
Landed in 71b5ce5 |
The exported method can be static as it will never be called directly. PR-URL: nodejs#29102 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
The exported method can be static as it will never be called directly. PR-URL: #29102 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Checklist
make -j4 test
(UNIX) passes