Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r--lib/_tls_common.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js
index 79d3ac1136e..b6e1774f38f 100644
--- a/lib/_tls_common.js
+++ b/lib/_tls_common.js
@@ -48,6 +48,10 @@ const {
} = internalBinding('constants');
const {
+ kEmptyObject,
+} = require('internal/util');
+
+const {
validateInteger,
} = require('internal/validators');
@@ -93,7 +97,7 @@ function SecureContext(secureProtocol, secureOptions, minVersion, maxVersion) {
}
function createSecureContext(options) {
- if (!options) options = {};
+ if (!options) options = kEmptyObject;
const {
honorCipherOrder,