From 25e30005b89ceabcb45474c10488edf3a14d5bb3 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 19 Mar 2021 07:33:51 -0700 Subject: [PATCH] lib: runtime deprecate access to process.binding('http_parser') MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The internal HTTP Parser constructor and methods list are available via `require('_http_parser')`, there's no need for the ecosystem to access via `process.binding()` Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/37813 Reviewed-By: Matteo Collina Reviewed-By: Michaël Zasso Reviewed-By: Gerhard Stöbich --- lib/internal/bootstrap/loaders.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index 4f0bd1cc3e2..bdc328ae5ea 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -109,6 +109,7 @@ const internalBindingAllowlist = new SafeSet([ const runtimeDeprecatedList = new SafeSet([ 'async_wrap', 'crypto', + 'http_parser', 'signal_wrap', 'url', 'v8',