mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: fix usage of module.registerSync in comment
PR-URL: https://github.com/nodejs/node/pull/57328 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
f320593958
commit
2b4e737ffb
1 file changed
+1
-1
+1
-1
@@ -1370,7 +1370,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') {
|
||||
|
||||
Reference in new issue
Block a user