mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
611a158f1a
PR-URL: https://github.com/nodejs/node/pull/31662 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
4 lines
99 B
JavaScript
4 lines
99 B
JavaScript
const { workerData, parentPort } = require('worker_threads');
|
|
|
|
parentPort.postMessage(workerData);
|