Skip to content

Commit

Permalink
module: add inspector to builtinLibs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
TimothyGu authored and evanlucas committed Oct 23, 2017
1 parent e01daec commit 25c9803
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/internal/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ const { exposeHTTP2 } = process.binding('config');
if (exposeHTTP2)
builtinLibs.push('http2');

if (typeof process.binding('inspector').connect === 'function') {
builtinLibs.push('inspector');
builtinLibs.sort();
}

function addBuiltinLibsToObject(object) {
// Make built-in modules available directly (loaded lazily).
builtinLibs.forEach((name) => {
Expand Down

0 comments on commit 25c9803

Please sign in to comment.