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: nodejs#38161
Backport-PR-URL: nodejs#38858
Refs: nodejs#36481
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Jan Krems <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
Trott committed May 30, 2021
1 parent d23fd59 commit 3208c12
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 3208c12

Please sign in to comment.