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>

PR-URL: #37813
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
  • Loading branch information
jasnell committed Apr 1, 2021
1 parent 8bb4e04 commit 25e3000
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 @@ -109,6 +109,7 @@ const internalBindingAllowlist = new SafeSet([
const runtimeDeprecatedList = new SafeSet([
'async_wrap',
'crypto',
'http_parser',
'signal_wrap',
'url',
'v8',
Expand Down

0 comments on commit 25e3000

Please sign in to comment.