GeezerVison is showing github.com — doc: fix RESOLVE_ESM_MATCH in modules.md · nodejs/node@e304628
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/modules.md +4-9Lines changed: 4 additions & 9 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -272,15 +272,10 @@ LOAD_PACKAGE_SELF(X, DIR) |
272 | 272 | 6. RESOLVE_ESM_MATCH(MATCH) |
273 | 273 |
|
274 | 274 | RESOLVE_ESM_MATCH(MATCH) |
275 | | -1. let { RESOLVED, EXACT } = MATCH |
276 | | -2. let RESOLVED_PATH = fileURLToPath(RESOLVED) |
277 | | -3. If EXACT is true, |
278 | | - a. If the file at RESOLVED_PATH exists, load RESOLVED_PATH as its extension |
279 | | - format. STOP |
280 | | -4. Otherwise, if EXACT is false, |
281 | | - a. LOAD_AS_FILE(RESOLVED_PATH) |
282 | | - b. LOAD_AS_DIRECTORY(RESOLVED_PATH) |
283 | | -5. THROW "not found" |
| 275 | +1. let RESOLVED_PATH = fileURLToPath(MATCH) |
| 276 | +2. If the file at RESOLVED_PATH exists, load RESOLVED_PATH as its extension |
| 277 | + format. STOP |
| 278 | +3. THROW "not found" |
284 | 279 | </pre> |
285 | 280 |
|
286 | 281 | ## Caching |
|