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: #21756
Refs: #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 targos committed Jul 19, 2018
1 parent d7edee4 commit 580071d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/_tls_wrap.js
Expand Up @@ -907,7 +907,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 @@ -1093,7 +1093,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 580071d

Please sign in to comment.