Skip to content

Commit 2998e47

Browse files
Update test/es-module/test-esm-loader-globalpreload-hook.mjs
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 68f85da commit 2998e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/es-module/test-esm-loader-globalpreload-hook.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe('globalPreload hook', () => {
133133
const { code, signal, stdout, stderr } = await spawnPromisified(execPath, [
134134
'--no-warnings',
135135
'--experimental-loader',
136-
`data:text/javascript,export function globalPreload() { if (this != null) { throw new Error('hook function must not be bound to ESMLoader instance') } return ''; }`,
136+
`data:text/javascript,export ${function globalPreload() { if (this != null) { throw new Error('hook function must not be bound to ESMLoader instance') }} }`,
137137
fixtures.path('empty.js'),
138138
]);
139139

0 commit comments

Comments
 (0)