Skip to content

Commit 10c5171

Browse files
cjihrigTrott
authored andcommitted
tls: add missing 'new'
ERR_INVALID_OPT_VALUE cannot be constructed without new. PR-URL: nodejs#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>
1 parent 95c1cb4 commit 10c5171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/_tls_common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ exports.createSecureContext = function createSecureContext(options) {
169169
if (cipherSuites === '' && cipherList === '') {
170170
// Specifying empty cipher suites for both TLS1.2 and TLS1.3 is invalid, its
171171
// not possible to handshake with no suites.
172-
throw ERR_INVALID_OPT_VALUE('ciphers', ciphers);
172+
throw new ERR_INVALID_OPT_VALUE('ciphers', ciphers);
173173
}
174174

175175
c.context.setCipherSuites(cipherSuites);

0 commit comments

Comments
 (0)