Skip to content

Commit

Permalink
debugger: replace internal use of deprecated API
Browse files Browse the repository at this point in the history
Change process.binding() use to internalBinding().

PR-URL: #38161
Refs: #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>
  • Loading branch information
Trott authored and targos committed Apr 29, 2021
1 parent a4084d6 commit 2a6203d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/inspector/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2a6203d

Please sign in to comment.