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().
  • Loading branch information
Trott committed Apr 20, 2021
1 parent a60f77b commit 8ee5bbe
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 @@ -89,7 +89,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 8ee5bbe

Please sign in to comment.