diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-28 15:29:48 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-30 18:14:38 +0100 |
commit | 8919169bb718a53a0c4496dcf2cd9674f8a79b0b (patch) | |
tree | 1072037ac4797b7a3168805148ddc9886ef8eb18 /lib | |
parent | 86a49ce2d8870e37089e3450addb05737ae01d70 (diff) | |
download | android-node-v8-8919169bb718a53a0c4496dcf2cd9674f8a79b0b.tar.gz android-node-v8-8919169bb718a53a0c4496dcf2cd9674f8a79b0b.tar.bz2 android-node-v8-8919169bb718a53a0c4496dcf2cd9674f8a79b0b.zip |
worker: export workerData to ESM workers
Fixes: https://github.com/nodejs/node/issues/25765
PR-URL: https://github.com/nodejs/node/pull/25768
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/worker_threads.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/worker_threads.js b/lib/worker_threads.js index 828edb6bff..2fe1a87246 100644 --- a/lib/worker_threads.js +++ b/lib/worker_threads.js @@ -17,5 +17,6 @@ module.exports = { MessageChannel, threadId, Worker, - parentPort: null + parentPort: null, + workerData: null, }; |