diff options
Diffstat (limited to 'benchmark/fixtures/echo.worker.js')
-rw-r--r-- | benchmark/fixtures/echo.worker.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/fixtures/echo.worker.js b/benchmark/fixtures/echo.worker.js new file mode 100644 index 0000000000..fac5551a66 --- /dev/null +++ b/benchmark/fixtures/echo.worker.js @@ -0,0 +1,7 @@ +'use strict'; + +const { parentPort } = require('worker'); + +parentPort.on('message', (msg) => { + parentPort.postMessage(msg); +}); |