Commit 91e4a7c
loader: use default loader as cascaded loader in the in loader worker
Use the default loader as the cascaded loader in the loader worker.
Otherwise we spawn loader workers in the loader workers indefinitely.
PR-URL: #47620
Fixes: #47566
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>1 parent 9101630 commit 91e4a7cCopy full SHA for 91e4a7c
File tree
Expand file treeCollapse file tree
8 files changed
+106
-10
lines changedOpen diff view settings
Filter options
- lib/internal
- main
- modules/esm
- process
- test
- es-module
- fixtures
Expand file treeCollapse file tree
8 files changed
+106
-10
lines changedOpen diff view settings
Collapse file
lib/internal/main/worker_thread.js
Copy file name to clipboardExpand all lines: lib/internal/main/worker_thread.js+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
133 | 133 | |
134 | 134 | |
135 | 135 | |
136 | | - |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
137 | 140 | |
138 | 141 | |
139 | 142 | |
|
Collapse file
lib/internal/modules/esm/hooks.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/hooks.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
| 54 | + |
54 | 55 | |
55 | 56 | |
56 | 57 | |
| ||
493 | 494 | |
494 | 495 | |
495 | 496 | |
496 | | - |
| 497 | + |
497 | 498 | |
498 | 499 | |
499 | 500 | |
|
Collapse file
lib/internal/modules/esm/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/loader.js+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
412 | 412 | |
413 | 413 | |
414 | 414 | |
415 | | - |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
416 | 419 | |
417 | 420 | |
418 | 421 | |
|
Collapse file
lib/internal/modules/esm/utils.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/utils.js+11-1Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
94 | | - |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
95 | 99 | |
96 | 100 | |
97 | 101 | |
98 | 102 | |
99 | 103 | |
100 | 104 | |
101 | 105 | |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
102 | 110 | |
103 | 111 | |
104 | 112 | |
| ||
165 | 173 | |
166 | 174 | |
167 | 175 | |
| 176 | + |
| 177 | + |
168 | 178 | |
Collapse file
lib/internal/modules/esm/worker.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/worker.js+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
33 | 33 | |
34 | 34 | |
35 | 35 | |
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | | - |
84 | 83 | |
85 | 84 | |
86 | 85 | |
|
Collapse file
lib/internal/process/pre_execution.js
Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | | - |
| 122 | + |
123 | 123 | |
124 | | - |
| 124 | + |
125 | 125 | |
126 | 126 | |
127 | 127 | |
| ||
600 | 600 | |
601 | 601 | |
602 | 602 | |
603 | | - |
| 603 | + |
604 | 604 | |
605 | | - |
| 605 | + |
606 | 606 | |
607 | 607 | |
608 | 608 | |
|
Collapse file
test/es-module/test-loaders-workers-spawned.mjs
Copy file name to clipboard+77Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
Collapse file
test/fixtures/print-delayed.js
Copy file name to clipboard+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
0 commit comments