Skip to content

Commit

Permalink
module: add inspector to builtinLibs
Browse files Browse the repository at this point in the history
PR-URL: nodejs#15643
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
TimothyGu committed Oct 3, 2017
1 parent 1261b94 commit 7157819
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 @@ -83,6 +83,11 @@ const builtinLibs = [
'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib'
];

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 7157819

Please sign in to comment.