Skip to content

Commit

Permalink
doc: fix usage of module.registerSync in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Mar 5, 2025
1 parent 4e222ae commit c74a92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ opt-in to using the non-default behavior:
import { readFile } from 'node:fs/promises';

// Asynchronous version accepted by module.register(). This fix is not needed
// for the synchronous version accepted by module.registerSync().
// for the synchronous version accepted by module.registerHooks().
export async function load(url, context, nextLoad) {
const result = await nextLoad(url, context);
if (result.format === 'commonjs') {
Expand Down

0 comments on commit c74a92b

Please sign in to comment.