diff options
author | Marco Levrero <marco.levrero@gmail.com> | 2018-06-19 22:03:33 +0100 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2018-08-04 17:09:58 -0400 |
commit | d7496bff9339408ffc969975d23024453907e21a (patch) | |
tree | 00a1df5f99df03c5c26b411b87d72563ff5fc509 /lib/_tls_common.js | |
parent | bd2ee60eae26973244e094c1f28d737afd392e94 (diff) | |
download | android-node-v8-d7496bff9339408ffc969975d23024453907e21a.tar.gz android-node-v8-d7496bff9339408ffc969975d23024453907e21a.tar.bz2 android-node-v8-d7496bff9339408ffc969975d23024453907e21a.zip |
http,tls: name anonymous callbacks
This commit is to help in the effort to name all anonymous
functions to help when heap debugging. Specifically, this commit
fixes some anonymous functions used as listeners in the lib/ folder.
PR-URL: https://github.com/nodejs/node/pull/21412
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Refs: https://github.com/nodejs/node/issues/8913
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r-- | lib/_tls_common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js index d8f6afed0b..de96fa687d 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -240,7 +240,7 @@ exports.translatePeerCertificate = function translatePeerCertificate(c) { c.infoAccess = Object.create(null); // XXX: More key validation? - info.replace(/([^\n:]*):([^\n]*)(?:\n|$)/g, function(all, key, val) { + info.replace(/([^\n:]*):([^\n]*)(?:\n|$)/g, (all, key, val) => { if (key in c.infoAccess) c.infoAccess[key].push(val); else |