aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/main/check_syntax.js
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-02-01 04:03:25 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-02-10 16:33:57 +0800
commit84000835e2be2e5b1936d774ed4c4a0106c966a4 (patch)
treef71f94c92976cd301df62aa0052cb1b3f7a68fa0 /lib/internal/main/check_syntax.js
parent70f4f08a9f0902056ac47271f9d3a761fcee4715 (diff)
downloadandroid-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.tar.gz
android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.tar.bz2
android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.zip
process: group main thread execution preparation code
This patch groups the preparation of main thread execution into `prepareMainThreadExecution()` and removes the cluster IPC setup in worker thread bootstrap since clusters do not use worker threads for its implementation and it's unlikely to change. PR-URL: https://github.com/nodejs/node/pull/26000 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Diffstat (limited to 'lib/internal/main/check_syntax.js')
-rw-r--r--lib/internal/main/check_syntax.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/internal/main/check_syntax.js b/lib/internal/main/check_syntax.js
index 97584841b3..5d98701132 100644
--- a/lib/internal/main/check_syntax.js
+++ b/lib/internal/main/check_syntax.js
@@ -4,11 +4,7 @@
// instead of actually running the file.
const {
- initializeDeprecations,
- initializeClusterIPC,
- initializePolicy,
- initializeESMLoader,
- loadPreloadModules
+ prepareMainThreadExecution
} = require('internal/bootstrap/pre_execution');
const {
@@ -22,11 +18,7 @@ const {
} = require('internal/modules/cjs/helpers');
// TODO(joyeecheung): not every one of these are necessary
-initializeDeprecations();
-initializeClusterIPC();
-initializePolicy();
-initializeESMLoader();
-loadPreloadModules();
+prepareMainThreadExecution();
markBootstrapComplete();
if (process.argv[1] && process.argv[1] !== '-') {