Skip to content

Commit 41e1e6e

Browse files
sam-githubitaloacasas
authored andcommitted
tls: do not refer to secureOptions as flags
Its confusing to have multiple names for the same thing, use secureOptions consistently. PR-URL: #9800 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 7c3d280 commit 41e1e6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/_tls_common.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ var crypto = null;
1212
const binding = process.binding('crypto');
1313
const NativeSecureContext = binding.SecureContext;
1414

15-
function SecureContext(secureProtocol, flags, context) {
15+
function SecureContext(secureProtocol, secureOptions, context) {
1616
if (!(this instanceof SecureContext)) {
17-
return new SecureContext(secureProtocol, flags, context);
17+
return new SecureContext(secureProtocol, secureOptions, context);
1818
}
1919

2020
if (context) {
@@ -29,7 +29,7 @@ function SecureContext(secureProtocol, flags, context) {
2929
}
3030
}
3131

32-
if (flags) this.context.setOptions(flags);
32+
if (secureOptions) this.context.setOptions(secureOptions);
3333
}
3434

3535
exports.SecureContext = SecureContext;

0 commit comments

Comments
 (0)