Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 77668ff

Browse filesBrowse files
timokoesslertargos
authored andcommitted
doc: fix usage of module.registerSync in comment
PR-URL: #57328 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9b4f7aa commit 77668ff
Copy full SHA for 77668ff

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/module.md‎

Copy file name to clipboardExpand all lines: doc/api/module.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ opt-in to using the non-default behavior:
12181218
import { readFile } from 'node:fs/promises';
12191219

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.