summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-29 18:44:11 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-01-16 13:49:36 +0800
commitb367ab2a6624b41bd59b751c61cf64ad91a9e2d6 (patch)
tree60e2e85a2f60bb773a642d6c948855072ff3e3d6 /node.gyp
parent2b401e33de81428dc5f6dfc60343e65ee5167886 (diff)
downloadandroid-node-v8-b367ab2a6624b41bd59b751c61cf64ad91a9e2d6.tar.gz
android-node-v8-b367ab2a6624b41bd59b751c61cf64ad91a9e2d6.tar.bz2
android-node-v8-b367ab2a6624b41bd59b751c61cf64ad91a9e2d6.zip
process: refactor coverage setup during bootstrap
- Renamed `internal/process/write-coverage.js` to `internal/coverage-gen/with_instrumentation.js`, `internal/process/coverage.js` to `internal/coverage-gen/with_profiler.js` to distinguish the two better and added comments. - Separate the coverage directory setup and the connection setup, moves the directory setup into `node.js` and closer to the exit hooks because that's where it's used. - Moves the `process.reallyExit` overwrite and `process.on('exit')` hooks setup into bootstrap/node.js for clarity, and move them to a later stage of bootstrap since they do not have to happen that early. PR-URL: https://github.com/nodejs/node/pull/25398 Reviewed-By: Ben Coe <bencoe@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.gyp b/node.gyp
index c7bc857b15..071a108e37 100644
--- a/node.gyp
+++ b/node.gyp
@@ -98,6 +98,8 @@
'lib/internal/console/constructor.js',
'lib/internal/console/global.js',
'lib/internal/console/inspector.js',
+ 'lib/internal/coverage-gen/with_profiler.js',
+ 'lib/internal/coverage-gen/with_instrumentation.js',
'lib/internal/crypto/certificate.js',
'lib/internal/crypto/cipher.js',
'lib/internal/crypto/diffiehellman.js',
@@ -152,8 +154,6 @@
'lib/internal/process/warning.js',
'lib/internal/process/worker_thread_only.js',
'lib/internal/querystring.js',
- 'lib/internal/process/write-coverage.js',
- 'lib/internal/process/coverage.js',
'lib/internal/queue_microtask.js',
'lib/internal/readline.js',
'lib/internal/repl.js',