Skip to content

Commit

Permalink
Update test/es-module/test-esm-loader-globalpreload-hook.mjs
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 Sep 8, 2023
1 parent 68f85da commit 2998e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/es-module/test-esm-loader-globalpreload-hook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('globalPreload hook', () => {
const { code, signal, stdout, stderr } = await spawnPromisified(execPath, [
'--no-warnings',
'--experimental-loader',
`data:text/javascript,export function globalPreload() { if (this != null) { throw new Error('hook function must not be bound to ESMLoader instance') } return ''; }`,
`data:text/javascript,export ${function globalPreload() { if (this != null) { throw new Error('hook function must not be bound to ESMLoader instance') }} }`,
fixtures.path('empty.js'),
]);

Expand Down

0 comments on commit 2998e47

Please sign in to comment.