summaryrefslogtreecommitdiff
path: root/lib/internal/process/worker_thread_only.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/process/worker_thread_only.js')
-rw-r--r--lib/internal/process/worker_thread_only.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/internal/process/worker_thread_only.js b/lib/internal/process/worker_thread_only.js
index d26159ab45..3fcd052542 100644
--- a/lib/internal/process/worker_thread_only.js
+++ b/lib/internal/process/worker_thread_only.js
@@ -118,19 +118,8 @@ function createWorkerFatalExeception(port) {
};
}
-function setup() {
- debug(`[${threadId}] is setting up worker child environment`);
-
- const port = getEnvMessagePort();
- port.on('message', createMessageHandler(port));
- port.start();
-
- return {
- workerFatalExeception: createWorkerFatalExeception(port)
- };
-}
-
module.exports = {
initializeWorkerStdio,
- setup
+ createMessageHandler,
+ createWorkerFatalExeception
};