node/test/fixtures/v8-coverage/worker.js
Anna Henningsen 0dbc8c8198
worker,coverage: support V8 coverage generation
PR-URL: https://github.com/nodejs/node/pull/22928
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-09-21 19:13:50 +02:00

6 lines
145 B
JavaScript

'use strict';
const { Worker } = require('worker_threads');
const path = require('path');
new Worker(path.resolve(__dirname, 'subprocess.js'));