summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/_tls_common.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js
index fb6ac34d1e..a9fe0d8f06 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)) {