Skip to content

Commit e7bdfaa

Browse files
chirsz-evertargos
authored andcommitted
doc: fix the require resolve algorithm in modules.md
Before the fix, the pseudocode was describing an infinite loop. PR-URL: #55117 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent ba923f4 commit e7bdfaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ NODE_MODULES_PATHS(START)
325325
2. let I = count of PARTS - 1
326326
3. let DIRS = []
327327
4. while I >= 0,
328-
a. if PARTS[I] = "node_modules" CONTINUE
328+
a. if PARTS[I] = "node_modules", GOTO d.
329329
b. DIR = path join(PARTS[0 .. I] + "node_modules")
330330
c. DIRS = DIR + DIRS
331331
d. let I = I - 1

0 commit comments

Comments
 (0)