From 66a277c6f5a42bbd9945d5fcb279673ccbd17911 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') 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 --- 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 4417a94181410b..b74573e8864c99 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', 'v8', ]);