lib: remove unused binding const
This commit removes the binding const as it is only used in one place which is in the following line. PR-URL: https://github.com/nodejs/node/pull/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 is contained in:
parent
f48ca9c9c1
commit
aaea70693e
@ -34,8 +34,7 @@ const { SSL_OP_CIPHER_SERVER_PREFERENCE } = process.binding('constants').crypto;
|
||||
// Lazily loaded
|
||||
var crypto = null;
|
||||
|
||||
const binding = process.binding('crypto');
|
||||
const NativeSecureContext = binding.SecureContext;
|
||||
const { SecureContext: NativeSecureContext } = process.binding('crypto');
|
||||
|
||||
function SecureContext(secureProtocol, secureOptions, context) {
|
||||
if (!(this instanceof SecureContext)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user