Commit edbcf7c
src, lib: return promises from link
Returns the promises created by link so that they can be awaited to get
rid of race conditions while resolving and loading modules.
PR-URL: nodejs#18394
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>1 parent 3cd7977 commit edbcf7cCopy full SHA for edbcf7c
File tree
Expand file treeCollapse file tree
2 files changed
+16
-15
lines changedOpen diff view settings
Filter options
- lib/internal/loader
- src
Expand file treeCollapse file tree
2 files changed
+16
-15
lines changedOpen diff view settings
Collapse file
lib/internal/loader/ModuleJob.js
Copy file name to clipboardExpand all lines: lib/internal/loader/ModuleJob.js+10-14Lines changed: 10 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | | - |
11 | | - |
12 | 9 | |
13 | 10 | |
14 | 11 | |
| ||
27 | 24 | |
28 | 25 | |
29 | 26 | |
30 | | - |
31 | 27 | |
32 | 28 | |
33 | 29 | |
34 | 30 | |
35 | 31 | |
36 | 32 | |
37 | 33 | |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
44 | 40 | |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
49 | 45 | |
50 | 46 | |
51 | 47 | |
|
Collapse file
+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
171 | 171 | |
172 | 172 | |
173 | 173 | |
| 174 | + |
| 175 | + |
| 176 | + |
174 | 177 | |
175 | 178 | |
176 | 179 | |
| ||
193 | 196 | |
194 | 197 | |
195 | 198 | |
| 199 | + |
| 200 | + |
196 | 201 | |
197 | 202 | |
198 | | - |
| 203 | + |
199 | 204 | |
200 | 205 | |
201 | 206 | |
|
0 commit comments