mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
debugger: replace internal use of deprecated API
Change process.binding() use to internalBinding(). PR-URL: https://github.com/nodejs/node/pull/38161 Backport-PR-URL: https://github.com/nodejs/node/pull/38858 Refs: https://github.com/nodejs/node/discussions/36481 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
1 parent
a62826bbe6
commit
a8924fa0fb
1 file changed
+1
-1
@@ -90,7 +90,7 @@ function extractFunctionName(description) {
|
||||
}
|
||||
|
||||
const PUBLIC_BUILTINS = require('module').builtinModules;
|
||||
const NATIVES = PUBLIC_BUILTINS ? process.binding('natives') : {};
|
||||
const NATIVES = PUBLIC_BUILTINS ? internalBinding('natives') : {};
|
||||
function isNativeUrl(url) {
|
||||
url = url.replace(/\.js$/, '');
|
||||
if (PUBLIC_BUILTINS) {
|
||||
|
||||
Reference in new issue
Block a user