diff options
author | isaacs <i@izs.me> | 2011-10-10 11:46:36 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-10 11:47:10 -0700 |
commit | ff942c6b39d06e81d82c30bc91a159a0440b6d9b (patch) | |
tree | 4cec5ea9990eeb722bf163465c788858edc0a8a0 | |
parent | eb40dcb0974bbf845a9dae853524452b95da3bd9 (diff) | |
download | node-ff942c6b39d06e81d82c30bc91a159a0440b6d9b.tar.gz |
Fix #1851 Correct X/index doc
-rw-r--r-- | doc/api/modules.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown index 080630696..f37615f31 100644 --- 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) |