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 <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>
This commit is contained in:
prayag21 2018-07-11 16:06:36 +05:30 committed by Ruben Bridgewater
parent ededb4b510
commit 39902e288e
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

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