File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,18 @@ LOAD_AS_FILE(X)
161
161
3. If X.json is a file, parse X.json to a JavaScript Object. STOP
162
162
4. If X.node is a file, load X.node as binary addon. STOP
163
163
164
+ LOAD_INDEX(X)
165
+ 1. If X/index.js is a file, load X/index.js as JavaScript text. STOP
166
+ 2. If X/index.json is a file, parse X/index.json to a JavaScript object. STOP
167
+ 3. If X/index.node is a file, load X/index.node as binary addon. STOP
168
+
164
169
LOAD_AS_DIRECTORY(X)
165
170
1. If X/package.json is a file,
166
171
a. Parse X/package.json, and look for "main" field.
167
172
b. let M = X + (json main field)
168
173
c. LOAD_AS_FILE(M)
169
- 2. If X/index.js is a file, load X/index.js as JavaScript text. STOP
170
- 3. If X/index.json is a file, parse X/index.json to a JavaScript object. STOP
171
- 4. If X/index.node is a file, load X/index.node as binary addon. STOP
174
+ d. LOAD_INDEX(M)
175
+ 2. LOAD_INDEX(X)
172
176
173
177
LOAD_NODE_MODULES(X, START)
174
178
1. let DIRS=NODE_MODULES_PATHS(START)
You can’t perform that action at this time.
0 commit comments