-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
lib: remove unused binding const #20144
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
This commit removes the binding const as it is only used in one place which is in the following line.
lib/_tls_common.js
Outdated
|
|
||
| const binding = process.binding('crypto'); | ||
| const NativeSecureContext = binding.SecureContext; | ||
| const NativeSecureContext = process.binding('crypto').SecureContext; |
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.
Nit: const { SecureContext: NativeSecureContext } = process.binding('crypto');
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.
I was unsure if that should be changed or not because of the different names. I'm happy to change this though if this is the preferred syntax. Do you know if it is? Thx
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.
That still keeps the name to NativeSecureContext so I think it's fine.
|
Rerun for node-test-commit-osx https://ci.nodejs.org/job/node-test-commit-osx/17984/ |
|
Landed in aaea706 |
This commit removes the binding const as it is only used in one place which is in the following line. PR-URL: #20144 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit removes the binding const as it is only used in one place which is in the following line. PR-URL: #20144 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit removes the binding const as it is only used in one place
which is in the following line.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes