Skip to content

Commit 7157819

Browse files
committed
module: add inspector to builtinLibs
PR-URL: nodejs#15643 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 1261b94 commit 7157819

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/internal/module.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ const builtinLibs = [
8383
'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib'
8484
];
8585

86+
if (typeof process.binding('inspector').connect === 'function') {
87+
builtinLibs.push('inspector');
88+
builtinLibs.sort();
89+
}
90+
8691
function addBuiltinLibsToObject(object) {
8792
// Make built-in modules available directly (loaded lazily).
8893
builtinLibs.forEach((name) => {

0 commit comments

Comments
 (0)