Commit a03b5d3
lib: reduce cycles in esm loader and load it in snapshot
PR-URL: #61769
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>1 parent 1017bf5 commit a03b5d3Copy full SHA for a03b5d3
5 files changed
+22-50Lines changed: 22 additions & 50 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal
- bootstrap/switches
- modules/esm
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/bootstrap/switches/is_main_thread.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/switches/is_main_thread.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
296 | 296 | |
297 | 297 | |
298 | 298 | |
| 299 | + |
299 | 300 | |
300 | 301 | |
301 | 302 | |
|
Collapse file
lib/internal/modules/esm/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/loader.js+7-30Lines changed: 7 additions & 30 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
| ||
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
| 100 | + |
| 101 | + |
| 102 | + |
113 | 103 | |
114 | 104 | |
115 | 105 | |
| ||
178 | 168 | |
179 | 169 | |
180 | 170 | |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
187 | | - |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
192 | | - |
193 | 171 | |
194 | 172 | |
195 | 173 | |
| ||
464 | 442 | |
465 | 443 | |
466 | 444 | |
467 | | - |
| 445 | + |
468 | 446 | |
469 | 447 | |
470 | 448 | |
| ||
715 | 693 | |
716 | 694 | |
717 | 695 | |
718 | | - |
| 696 | + |
719 | 697 | |
720 | 698 | |
721 | 699 | |
| ||
792 | 770 | |
793 | 771 | |
794 | 772 | |
795 | | - |
796 | 773 | |
797 | 774 | |
798 | 775 | |
| ||
818 | 795 | |
819 | 796 | |
820 | 797 | |
821 | | - |
| 798 | + |
822 | 799 | |
823 | 800 | |
824 | 801 | |
|
Collapse file
lib/internal/modules/esm/resolve.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js+2-7Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
50 | | - |
| 49 | + |
51 | 50 | |
52 | 51 | |
53 | 52 | |
| ||
870 | 869 | |
871 | 870 | |
872 | 871 | |
| 872 | + |
873 | 873 | |
874 | 874 | |
875 | 875 | |
| ||
1043 | 1043 | |
1044 | 1044 | |
1045 | 1045 | |
1046 | | - |
1047 | | - |
1048 | | - |
1049 | | - |
1050 | | - |
Collapse file
lib/internal/modules/esm/translators.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/translators.js+5-12Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
| 17 | + |
18 | 18 | |
19 | 19 | |
20 | 20 | |
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
| 61 | + |
71 | 62 | |
72 | 63 | |
73 | 64 | |
| ||
209 | 200 | |
210 | 201 | |
211 | 202 | |
212 | | - |
| 203 | + |
213 | 204 | |
214 | 205 | |
215 | 206 | |
| ||
515 | 506 | |
516 | 507 | |
517 | 508 | |
| 509 | + |
| 510 | + |
518 | 511 | |
519 | 512 | |
520 | 513 | |
|
Collapse file
test/parallel/test-bootstrap-modules.js
Copy file name to clipboardExpand all lines: test/parallel/test-bootstrap-modules.js+7-1Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
115 | 115 | |
116 | 116 | |
117 | 117 | |
| 118 | + |
118 | 119 | |
119 | 120 | |
120 | 121 | |
121 | | - |
122 | 122 | |
123 | 123 | |
124 | 124 | |
125 | 125 | |
126 | 126 | |
127 | 127 | |
128 | 128 | |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
129 | 135 | |
130 | 136 | |
131 | 137 | |
|
0 commit comments