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 31d3864

Browse filesBrowse files
hybristtargos
authored andcommitted
doc: fix numbering in require algorithm
Refs: #29327 PR-URL: #30117 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent df86793 commit 31d3864
Copy full SHA for 31d3864

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/modules.md‎

Copy file name to clipboardExpand all lines: doc/api/modules.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ require(X) from module at path Y
160160
a. LOAD_AS_FILE(Y + X)
161161
b. LOAD_AS_DIRECTORY(Y + X)
162162
c. THROW "not found"
163-
5. LOAD_NODE_MODULES(X, dirname(Y))
164-
4. LOAD_SELF_REFERENCE(X, dirname(Y))
163+
4. LOAD_NODE_MODULES(X, dirname(Y))
164+
5. LOAD_SELF_REFERENCE(X, dirname(Y))
165165
6. THROW "not found"
166166
167167
LOAD_AS_FILE(X)
@@ -223,8 +223,8 @@ LOAD_NODE_MODULES(X, START)
223223
1. let DIRS = NODE_MODULES_PATHS(START)
224224
2. for each DIR in DIRS:
225225
a. let FILE_PATH = RESOLVE_BARE_SPECIFIER(DIR, X)
226-
a. LOAD_AS_FILE(FILE_PATH)
227-
b. LOAD_AS_DIRECTORY(FILE_PATH)
226+
b. LOAD_AS_FILE(FILE_PATH)
227+
c. LOAD_AS_DIRECTORY(FILE_PATH)
228228
229229
RESOLVE_BARE_SPECIFIER(DIR, X)
230230
1. Try to interpret X as a combination of name and subpath where the name

0 commit comments

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