From 39902e288ea0debe32b8868049b779d843cad1e4 Mon Sep 17 00:00:00 2001 From: prayag21 <10997858+prayag21@users.noreply.github.com> Date: Wed, 11 Jul 2018 16:06:36 +0530 Subject: [PATCH] tls: named anonymous functions in _tls_wrap.js PR-URL: https://github.com/nodejs/node/pull/21756 Refs: https://github.com/nodejs/node/issues/8913 Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- lib/_tls_wrap.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 7b16abab87bdc0..c4118c3af1767b 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -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); }; @@ -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];