diff options
author | cjihrig <cjihrig@gmail.com> | 2019-05-08 13:49:19 -0400 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-05-10 11:25:26 -0700 |
commit | 10c5171d57b16b3f7dfbbcdedf6ad2f911eb4159 (patch) | |
tree | 9c3a53952b154818b3f2dd6a6715b3d1358e1457 /lib/_tls_common.js | |
parent | 95c1cb4c2f0ec73faba2529c42726cf3941ef975 (diff) | |
download | android-node-v8-10c5171d57b16b3f7dfbbcdedf6ad2f911eb4159.tar.gz android-node-v8-10c5171d57b16b3f7dfbbcdedf6ad2f911eb4159.tar.bz2 android-node-v8-10c5171d57b16b3f7dfbbcdedf6ad2f911eb4159.zip |
tls: add missing 'new'
ERR_INVALID_OPT_VALUE cannot be constructed without new.
PR-URL: https://github.com/nodejs/node/pull/27614
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r-- | lib/_tls_common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js index 2a4ad9b24e..53d082bfa3 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -169,7 +169,7 @@ exports.createSecureContext = function createSecureContext(options) { if (cipherSuites === '' && cipherList === '') { // Specifying empty cipher suites for both TLS1.2 and TLS1.3 is invalid, its // not possible to handshake with no suites. - throw ERR_INVALID_OPT_VALUE('ciphers', ciphers); + throw new ERR_INVALID_OPT_VALUE('ciphers', ciphers); } c.context.setCipherSuites(cipherSuites); |