From 580071dde4104fd51fd7973f538cc72d4f13e347 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 603eca78df6422..775bdbefdb201e 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -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); }; @@ -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];