aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-07-13 10:53:31 +0800
committerTimothy Gu <timothygu99@gmail.com>2017-10-02 21:37:59 -0700
commit71578198e30344140c237ec36fb706419c398440 (patch)
treec947a15675fab4f4bcf2490e569aa0a855a240ab /lib
parent1261b94a3facbf486c58b8e8b2682f0de8b4d107 (diff)
downloadandroid-node-v8-71578198e30344140c237ec36fb706419c398440.tar.gz
android-node-v8-71578198e30344140c237ec36fb706419c398440.tar.bz2
android-node-v8-71578198e30344140c237ec36fb706419c398440.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/module.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/internal/module.js b/lib/internal/module.js
index c5a26a0419..d1494852c0 100644
--- a/lib/internal/module.js
+++ b/lib/internal/module.js
@@ -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) => {