Skip to content

Commit

Permalink
tls: named anonymous functions in _tls_wrap.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs#21756
Refs: nodejs#8913
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
prayag21 authored and BridgeAR committed Jul 18, 2018
1 parent ededb4b commit 39902e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/_tls_wrap.js
Expand Up @@ -912,7 +912,7 @@ function Server(options, listener) {

util.inherits(Server, net.Server);
exports.Server = Server;
exports.createServer = function(options, listener) {
exports.createServer = function createServer(options, listener) {
return new Server(options, listener);
};

Expand Down Expand Up @@ -1098,7 +1098,8 @@ function onConnectEnd() {
}
}

exports.connect = function(...args /* [port,] [host,] [options,] [cb] */) {
// Arguments: [port,] [host,] [options,] [cb]
exports.connect = function connect(...args) {
args = normalizeConnectArgs(args);
var options = args[0];
var cb = args[1];
Expand Down

0 comments on commit 39902e2

Please sign in to comment.