mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
Fix #1851 Correct X/index doc
This commit is contained in:
parent
eb40dcb097
commit
ff942c6b39
@ -200,7 +200,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)
|
||||
|
Loading…
Reference in New Issue
Block a user