Skip to content

Commit ff942c6

Browse files
committed
Fix #1851 Correct X/index doc
1 parent eb40dcb commit ff942c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/modules.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ in pseudocode of what require.resolve does:
200200
a. Parse X/package.json, and look for "main" field.
201201
b. let M = X + (json main field)
202202
c. LOAD_AS_FILE(M)
203-
2. LOAD_AS_FILE(X/index)
203+
2. If X/index.js is a file, load X/index.js as JavaScript text. STOP
204+
3. If X/index.node is a file, load X/index.node as binary addon. STOP
204205

205206
LOAD_NODE_MODULES(X, START)
206207
1. let DIRS=NODE_MODULES_PATHS(START)

0 commit comments

Comments
 (0)