diff options
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r-- | lib/_tls_common.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js index 16e78a62cf..a0ef6934e3 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -134,8 +134,8 @@ exports.createSecureContext = function createSecureContext(options) { // `ssl_set_pkey` returns `0` when the key does not match the cert, but // `ssl_set_cert` returns `1` and nullifies the key in the SSL structure // which leads to the crash later on. - var key = options.key; - var passphrase = options.passphrase; + const key = options.key; + const passphrase = options.passphrase; if (key) { if (Array.isArray(key)) { for (i = 0; i < key.length; ++i) { |