Commit a90defe
esm: make
Due to a bug in top-level await implementation, it used to default to
exit code 13.
PR-URL: #41388
Backport-PR-URL: #41508
Fixes: #40808
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>process.exit() default to exit code 01 parent b050c65 commit a90defeCopy full SHA for a90defe
File tree
Expand file treeCollapse file tree
9 files changed
+57
-10
lines changedOpen diff view settings
Filter options
- lib/internal
- modules
- esm
- process
- test
- es-module
- fixtures/es-modules/tla
- message
- parallel
Expand file treeCollapse file tree
9 files changed
+57
-10
lines changedOpen diff view settings
Collapse file
lib/internal/modules/esm/handle_process_exit.js
Copy file name to clipboard+12Lines changed: 12 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 | + |
Collapse file
lib/internal/modules/run_main.js
Copy file name to clipboardExpand all lines: lib/internal/modules/run_main.js+9-10Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
6 | 5 | |
7 | 6 | |
8 | 7 | |
9 | 8 | |
10 | 9 | |
| 10 | + |
| 11 | + |
| 12 | + |
11 | 13 | |
12 | 14 | |
13 | 15 | |
| ||
51 | 53 | |
52 | 54 | |
53 | 55 | |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
61 | 62 | |
62 | | - |
63 | | - |
64 | 63 | |
65 | 64 | |
66 | 65 | |
|
Collapse file
lib/internal/process/per_thread.js
Copy file name to clipboardExpand all lines: lib/internal/process/per_thread.js+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
39 | 43 | |
40 | 44 | |
41 | 45 | |
| ||
165 | 169 | |
166 | 170 | |
167 | 171 | |
| 172 | + |
| 173 | + |
168 | 174 | |
169 | 175 | |
170 | 176 | |
|
Collapse file
test/es-module/test-esm-tla-unfinished.mjs
Copy file name to clipboardExpand all lines: test/es-module/test-esm-tla-unfinished.mjs+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
Collapse file
test/fixtures/es-modules/tla/process-exit.mjs
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
Collapse file
test/fixtures/es-modules/tla/unresolved-with-worker-process-exit.mjs
Copy file name to clipboard+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
Collapse file
test/message/esm_display_syntax_error_import.out
Copy file name to clipboardExpand all lines: test/message/esm_display_syntax_error_import.out+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
Collapse file
test/message/esm_display_syntax_error_import_module.out
Copy file name to clipboardExpand all lines: test/message/esm_display_syntax_error_import_module.out+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
Collapse file
test/parallel/test-bootstrap-modules.js
Copy file name to clipboardExpand all lines: test/parallel/test-bootstrap-modules.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
67 | 67 | |
68 | 68 | |
69 | 69 | |
| 70 | + |
70 | 71 | |
71 | 72 | |
72 | 73 | |
|
0 commit comments