Skip to content

Commit b8b02c3

Browse files
cjihrigtargos
authored andcommitted
tls: add missing 'new'
ERR_INVALID_OPT_VALUE cannot be constructed without new. PR-URL: #27614 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 76c9e86 commit b8b02c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_common.js

+1-1
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)