From 10c5171d57b16b3f7dfbbcdedf6ad2f911eb4159 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 8 May 2019 13:49:19 -0400 Subject: 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 Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- lib/_tls_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/_tls_common.js') 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); -- cgit v1.2.3