diff --git a/lib/_tls_common.js b/lib/_tls_common.js index fb6ac34d1e6..a9fe0d8f06a 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -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)) {