GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix numbering in require algorithm · nodejs/node@31d3864

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • modules.md
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.