We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c9e86 commit b8b02c3Copy full SHA for b8b02c3
lib/_tls_common.js
@@ -169,7 +169,7 @@ exports.createSecureContext = function createSecureContext(options) {
169
if (cipherSuites === '' && cipherList === '') {
170
// Specifying empty cipher suites for both TLS1.2 and TLS1.3 is invalid, its
171
// not possible to handshake with no suites.
172
- throw ERR_INVALID_OPT_VALUE('ciphers', ciphers);
+ throw new ERR_INVALID_OPT_VALUE('ciphers', ciphers);
173
}
174
175
c.context.setCipherSuites(cipherSuites);
0 commit comments