summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-11-29 06:17:57 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-12-02 04:51:18 +0800
commitcfc2559ee0807e4c01ad882211792e917c6dba17 (patch)
treecdcce2e4887f7412152fbe52bdcecc42dc469bbe /node.gyp
parentce8b0e196eca6816d77dda43f28e7da6b3784e6b (diff)
downloadandroid-node-v8-cfc2559ee0807e4c01ad882211792e917c6dba17.tar.gz
android-node-v8-cfc2559ee0807e4c01ad882211792e917c6dba17.tar.bz2
android-node-v8-cfc2559ee0807e4c01ad882211792e917c6dba17.zip
console: split console into global.js and constructor.js
Since we do not actually use the Console constructor to instantiate the global console, move the two piece of code into two different JS files for clarity, and make console.js a mere re-export of the global console. The hope is to make the global console, a namespace, more web-compatible while keeping the Console constructor available for backwards compatibility. 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.gyp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 4ad5ef3a9f..c70a35e02c 100644
--- a/node.gyp
+++ b/node.gyp
@@ -95,6 +95,8 @@
'lib/internal/cluster/shared_handle.js',
'lib/internal/cluster/utils.js',
'lib/internal/cluster/worker.js',
+ 'lib/internal/console/constructor.js',
+ 'lib/internal/console/global.js',
'lib/internal/crypto/certificate.js',
'lib/internal/crypto/cipher.js',
'lib/internal/crypto/diffiehellman.js',