mirror of https://github.com/nodejs/node.git
8 lines
129 B
JavaScript
8 lines
129 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const { parentPort } = require('worker');
|
||
|
|
||
|
parentPort.on('message', (msg) => {
|
||
|
parentPort.postMessage(msg);
|
||
|
});
|