Skip to content

Conversation

@danbev
Copy link
Contributor

@danbev danbev commented Apr 19, 2018

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), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

This commit removes the binding const as it is only used in one place
which is in the following line.
@nodejs-github-bot nodejs-github-bot added the tls Issues and PRs related to the tls subsystem. label Apr 19, 2018
@danbev
Copy link
Contributor Author

danbev commented Apr 19, 2018


const binding = process.binding('crypto');
const NativeSecureContext = binding.SecureContext;
const NativeSecureContext = process.binding('crypto').SecureContext;
Copy link
Member

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');

Copy link
Contributor Author

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

Copy link
Member

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.

@danbev
Copy link
Contributor Author

danbev commented Apr 19, 2018

@trivikr
Copy link
Member

trivikr commented Apr 20, 2018

Rerun for node-test-commit-osx https://ci.nodejs.org/job/node-test-commit-osx/17984/

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 22, 2018
@apapirovski
Copy link
Contributor

Landed in aaea706

apapirovski pushed a commit that referenced this pull request Apr 22, 2018
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>
jasnell pushed a commit that referenced this pull request Apr 23, 2018
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>
@danbev danbev deleted the remove_binding_tls_common branch August 20, 2019 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.