summaryrefslogtreecommitdiff
path: root/lib/worker_threads.js
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-23 11:53:05 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-12-31 14:19:49 +0800
commitaf237152cdb0b7b5a4495e84cdf4b170f6ddd361 (patch)
treeec95c3845292c6f7f9efcc861efe14465e4e2f10 /lib/worker_threads.js
parent7163fbf066fe3e84a2203c01a385df1765d53ab6 (diff)
downloadandroid-node-v8-af237152cdb0b7b5a4495e84cdf4b170f6ddd361.tar.gz
android-node-v8-af237152cdb0b7b5a4495e84cdf4b170f6ddd361.tar.bz2
android-node-v8-af237152cdb0b7b5a4495e84cdf4b170f6ddd361.zip
process: split worker IO into internal/worker/io.js
- Move `setupProcessStdio` which contains write access to the process object into `bootstrap/node.js` - Move `MessagePort`, `MessageChannel`, `ReadableWorkerStdio`, and `WritableWorkerStdio` into `internal/worker/io.js` - Move more worker-specific bootstrap code into `internal/process/worker_thread_only` from `setupChild` in `internal/worker.js`, and move the `process._fatalException` overwrite into `bootstrap/node.js` for clarity. PR-URL: https://github.com/nodejs/node/pull/25199 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/worker_threads.js')
-rw-r--r--lib/worker_threads.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/worker_threads.js b/lib/worker_threads.js
index 0609650cd5..828edb6bff 100644
--- a/lib/worker_threads.js
+++ b/lib/worker_threads.js
@@ -2,12 +2,15 @@
const {
isMainThread,
- MessagePort,
- MessageChannel,
threadId,
Worker
} = require('internal/worker');
+const {
+ MessagePort,
+ MessageChannel
+} = require('internal/worker/io');
+
module.exports = {
isMainThread,
MessagePort,