From a5928712c909641c34088b0fe98d4adabc91db03 Mon Sep 17 00:00:00 2001 From: Petras <15868923+kimberlake@users.noreply.github.com> Date: Wed, 11 Jul 2018 11:35:30 +0100 Subject: [PATCH] http: name anonymous function in _http_common.js Refs: https://github.com/nodejs/node/issues/8913 PR-URL: https://github.com/nodejs/node/pull/21755 Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Jon Moss Reviewed-By: Colin Ihrig --- lib/_http_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_common.js b/lib/_http_common.js index 32fc782331e2bd..faa6fe629ae416 100644 --- a/lib/_http_common.js +++ b/lib/_http_common.js @@ -148,7 +148,7 @@ function parserOnMessageComplete() { } -const parsers = new FreeList('parsers', 1000, function() { +const parsers = new FreeList('parsers', 1000, function parsersCb() { const parser = new HTTPParser(HTTPParser.REQUEST); parser._headers = [];