Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix #1851 Correct X/index doc
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 10, 2011
1 parent 56e6952 commit 4f91b72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/modules.markdown
Expand Up @@ -265,7 +265,8 @@ in pseudocode of what require.resolve does:
a. Parse X/package.json, and look for "main" field.
b. let M = X + (json main field)
c. LOAD_AS_FILE(M)
2. LOAD_AS_FILE(X/index)
2. If X/index.js is a file, load X/index.js as JavaScript text. STOP
3. If X/index.node is a file, load X/index.node as binary addon. STOP

LOAD_NODE_MODULES(X, START)
1. let DIRS=NODE_MODULES_PATHS(START)
Expand Down

0 comments on commit 4f91b72

Please sign in to comment.