mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
module: add inspector to builtinLibs
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 file changed
+5
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user