From c40952ea47cc5e966b7fe6fa059fa442dcc06bfc Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 20 Apr 2021 07:16:03 -0700 Subject: [PATCH] debugger: replace internal use of deprecated API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Jan Krems Reviewed-By: Colin Ihrig Reviewed-By: Stephen Belanger Reviewed-By: Gerhard Stöbich Reviewed-By: Michaël Zasso --- lib/internal/inspector/inspect_repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/inspector/inspect_repl.js b/lib/internal/inspector/inspect_repl.js index cdc05211f0d040..57a76b3b7f0dfb 100644 --- a/lib/internal/inspector/inspect_repl.js +++ b/lib/internal/inspector/inspect_repl.js @@ -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) {