Skip to content

Commit 6761715

Browse files
committed
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 <jasnell@gmail.com>
1 parent 5e6386e commit 6761715

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/internal/bootstrap/loaders.js

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const internalBindingAllowlist = new SafeSet([
108108

109109
const runtimeDeprecatedList = new SafeSet([
110110
'async_wrap',
111+
'http_parser',
111112
]);
112113

113114
// Set up process.binding() and process._linkedBinding().

0 commit comments

Comments
 (0)