Skip to content

Commit 25c9803

Browse files
TimothyGuevanlucas
authored andcommitted
module: add inspector to builtinLibs
Backport-PR-URL: #16071 PR-URL: #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 e01daec commit 25c9803

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
@@ -87,6 +87,11 @@ const { exposeHTTP2 } = process.binding('config');
8787
if (exposeHTTP2)
8888
builtinLibs.push('http2');
8989

90+
if (typeof process.binding('inspector').connect === 'function') {
91+
builtinLibs.push('inspector');
92+
builtinLibs.sort();
93+
}
94+
9095
function addBuiltinLibsToObject(object) {
9196
// Make built-in modules available directly (loaded lazily).
9297
builtinLibs.forEach((name) => {

0 commit comments

Comments
 (0)