Skip to content

Commit 52ebe0f

Browse files
Ayase-252jasnell
authored andcommitted
test: add test to verify other extension can be loaded by worker
PR-URL: #39788 Fixes: #39124 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 23b7048 commit 52ebe0f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/fixtures/worker-script.ts

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
4+
5+
const { Worker } = require('worker_threads');
6+
7+
(common.mustCall(() => {
8+
new Worker(fixtures.path('worker-script.ts'));
9+
}))();

0 commit comments

Comments
 (0)