Skip to content

Commit 580071d

Browse files
prayag21targos
authored andcommitted
tls: named anonymous functions in _tls_wrap.js
PR-URL: #21756 Refs: #8913 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent d7edee4 commit 580071d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/_tls_wrap.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ function Server(options, listener) {
907907

908908
util.inherits(Server, net.Server);
909909
exports.Server = Server;
910-
exports.createServer = function(options, listener) {
910+
exports.createServer = function createServer(options, listener) {
911911
return new Server(options, listener);
912912
};
913913

@@ -1093,7 +1093,8 @@ function onConnectEnd() {
10931093
}
10941094
}
10951095

1096-
exports.connect = function(...args /* [port,] [host,] [options,] [cb] */) {
1096+
// Arguments: [port,] [host,] [options,] [cb]
1097+
exports.connect = function connect(...args) {
10971098
args = normalizeConnectArgs(args);
10981099
var options = args[0];
10991100
var cb = args[1];

0 commit comments

Comments
 (0)