nodejs-mozilla/test/fixtures/worker-data.cjs

4 lines
99 B
JavaScript

const { workerData, parentPort } = require('worker_threads');
parentPort.postMessage(workerData);