tls: name anonymous function in tls.js

Refs: https://github.com/nodejs/node/issues/8913

PR-URL: https://github.com/nodejs/node/pull/21754
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>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
This commit is contained in:
Kevin Lacabane 2018-07-11 11:36:33 +01:00 committed by Trivikram Kamat
parent 72624fdd53
commit 07c514ce29

View File

@ -76,7 +76,7 @@ function convertProtocols(protocols) {
return buff;
}
exports.convertALPNProtocols = function(protocols, out) {
exports.convertALPNProtocols = function convertALPNProtocols(protocols, out) {
// If protocols is Array - translate it into buffer
if (Array.isArray(protocols)) {
out.ALPNProtocols = convertProtocols(protocols);