Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
GeoffreyBooth and aduh95 authored Dec 6, 2023
1 parent 9b844ef commit d145830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/es-module/test-esm-loader-threads.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('off-thread hooks', { concurrency: true }, () => {
'--import',
`data:text/javascript,${encodeURIComponent(`
import { register } from 'node:module';
register('${fixtures.fileURL('es-module-loaders/hooks-log.mjs')}');
register(${JSON.stringify(fixtures.fileURL('es-module-loaders/hooks-log.mjs'))});
`)}`,
fixtures.path('es-module-loaders/workers-spawned.mjs'),
]);
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/es-module-loaders/workers-spawned.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Worker } from 'worker_threads';
import { fileURLToPath } from 'node:url';

const workerPath = fileURLToPath(new URL('./worker-log.mjs', import.meta.url));
const workerPath = new URL('./worker-log.mjs', import.meta.url);

// Spawn two workers
new Worker(workerPath);
Expand Down

0 comments on commit d145830

Please sign in to comment.