Skip to content

Commit f98e927

Browse files
guybedfordcodebytere
authored andcommitted
doc: correct CommonJS self-resolve spec
PR-URL: #33391 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
1 parent d0bfbd6 commit f98e927

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/modules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ LOAD_SELF_REFERENCE(X, START)
208208
1. Find the closest package scope to START.
209209
2. If no scope was found, return.
210210
3. If the `package.json` has no "exports", return.
211-
4. If the name in `package.json` isn't a prefix of X, throw "not found".
212-
5. Otherwise, load the remainder of X relative to this package as if it
213-
was loaded via `LOAD_NODE_MODULES` with a name in `package.json`.
211+
4. If the name in `package.json` is a prefix of X, then
212+
a. Load the remainder of X relative to this package as if it was
213+
loaded via `LOAD_NODE_MODULES` with a name in `package.json`.
214214
215215
LOAD_PACKAGE_EXPORTS(DIR, X)
216216
1. Try to interpret X as a combination of name and subpath where the name

0 commit comments

Comments
 (0)