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