mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: add test to verify other extension can be loaded by worker
PR-URL: https://github.com/nodejs/node/pull/39788 Fixes: https://github.com/nodejs/node/issues/39124 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
23b704858f
commit
52ebe0f83a
0
test/fixtures/worker-script.ts
vendored
Normal file
0
test/fixtures/worker-script.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const fixtures = require('../common/fixtures');
|
||||
|
||||
const { Worker } = require('worker_threads');
|
||||
|
||||
(common.mustCall(() => {
|
||||
new Worker(fixtures.path('worker-script.ts'));
|
||||
}))();
|
Loading…
Reference in New Issue
Block a user