Skip to content

Commit

Permalink
lib: runtime deprecate access to process.binding('http_parser')
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jasnell committed Mar 19, 2021
1 parent 5e6386e commit 6761715
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/bootstrap/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const internalBindingAllowlist = new SafeSet([

const runtimeDeprecatedList = new SafeSet([
'async_wrap',
'http_parser',
]);

// Set up process.binding() and process._linkedBinding().
Expand Down

0 comments on commit 6761715

Please sign in to comment.