Commit df47720
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 deda50a commit df47720Copy full SHA for df47720
5 files changed
+21-44Lines changed: 21 additions & 44 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+6-24Lines changed: 6 additions & 24 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | | - |
70 | 68 | |
71 | 69 | |
72 | 70 | |
| ||
100 | 98 | |
101 | 99 | |
102 | 100 | |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
| 101 | + |
| 102 | + |
| 103 | + |
116 | 104 | |
117 | 105 | |
118 | 106 | |
| ||
181 | 169 | |
182 | 170 | |
183 | 171 | |
184 | | - |
185 | | - |
186 | | - |
187 | | - |
188 | | - |
189 | 172 | |
190 | 173 | |
191 | 174 | |
| ||
459 | 442 | |
460 | 443 | |
461 | 444 | |
462 | | - |
| 445 | + |
463 | 446 | |
464 | 447 | |
465 | 448 | |
| ||
710 | 693 | |
711 | 694 | |
712 | 695 | |
713 | | - |
| 696 | + |
714 | 697 | |
715 | 698 | |
716 | 699 | |
| ||
787 | 770 | |
788 | 771 | |
789 | 772 | |
790 | | - |
791 | 773 | |
792 | 774 | |
793 | 775 | |
| ||
813 | 795 | |
814 | 796 | |
815 | 797 | |
816 | | - |
| 798 | + |
817 | 799 | |
818 | 800 | |
819 | 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 |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
| 16 | + |
17 | 17 | |
18 | 18 | |
19 | 19 | |
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
| 60 | + |
70 | 61 | |
71 | 62 | |
72 | 63 | |
| ||
210 | 201 | |
211 | 202 | |
212 | 203 | |
213 | | - |
| 204 | + |
214 | 205 | |
215 | 206 | |
216 | 207 | |
| ||
516 | 507 | |
517 | 508 | |
518 | 509 | |
| 510 | + |
| 511 | + |
519 | 512 | |
520 | 513 | |
521 | 514 | |
|
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