projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb40dcb
)
Fix #1851 Correct X/index doc
author
isaacs
<i@izs.me>
Mon, 10 Oct 2011 18:46:36 +0000
(11:46 -0700)
committer
isaacs
<i@izs.me>
Mon, 10 Oct 2011 18:47:10 +0000
(11:47 -0700)
doc/api/modules.markdown
patch
|
blob
|
history
diff --git
a/doc/api/modules.markdown
b/doc/api/modules.markdown
index
0806306
..
f37615f
100644
(file)
--- a/
doc/api/modules.markdown
+++ b/
doc/api/modules.markdown
@@
-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)