• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../common');
3const fixtures = require('../common/fixtures');
4const assert = require('assert');
5const { Worker } = require('worker_threads');
6
7const w = new Worker(fixtures.path('worker-script.mjs'));
8w.on('message', common.mustCall((message) => {
9  assert.strictEqual(message, 'Hello, world!');
10}));
11