Skip to content

Commit

Permalink
test: add test to verify other extension can be loaded by worker
Browse files Browse the repository at this point in the history
PR-URL: #39788
Fixes: #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>
  • Loading branch information
Ayase-252 authored and jasnell committed Aug 26, 2021
1 parent 23b7048 commit 52ebe0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Empty file added test/fixtures/worker-script.ts
Empty file.
Original file line number Diff line number Diff line change
@@ -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'));
}))();

0 comments on commit 52ebe0f

Please sign in to comment.