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>

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
James M Snell committed 2021-04-01 11:37:29 -07:00
1 parent 8bb4e048af
commit 25e30005b8
1 file changed
+1
+1
View File
@@ -109,6 +109,7 @@ const internalBindingAllowlist = new SafeSet([
const runtimeDeprecatedList = new SafeSet([
'async_wrap',
'crypto',
'http_parser',
'signal_wrap',
'url',
'v8',