summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-11-29 06:24:14 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-12-02 04:51:20 +0800
commitedb8f228a27378e59aed3b9632895f8c13799863 (patch)
treed28fb1ac21d29c8a55005de0f6a960cd41a2821e /node.gyp
parentcfc2559ee0807e4c01ad882211792e917c6dba17 (diff)
downloadandroid-node-v8-edb8f228a27378e59aed3b9632895f8c13799863.tar.gz
android-node-v8-edb8f228a27378e59aed3b9632895f8c13799863.tar.bz2
android-node-v8-edb8f228a27378e59aed3b9632895f8c13799863.zip
console: move the inspector console wrapping in a separate file
Move the wrapping of the inspector console in a separate file for clarity. In addition, save the original console from the VM explicitly via an exported property `require('internal/console/inspector').consoleFromVM` that `require('inspector').console` can alias to it later, instead of hanging the original console onto `per_thread.js` during bootstrap and counting on that `per_thread.js` only gets evaluated once and gets cached. PR-URL: https://github.com/nodejs/node/pull/24709 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index c70a35e02c..03b5203067 100644
--- a/node.gyp
+++ b/node.gyp
@@ -97,6 +97,7 @@
'lib/internal/cluster/worker.js',
'lib/internal/console/constructor.js',
'lib/internal/console/global.js',
+ 'lib/internal/console/inspector.js',
'lib/internal/crypto/certificate.js',
'lib/internal/crypto/cipher.js',
'lib/internal/crypto/diffiehellman.js',