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];