Commit ea73702
process,worker: ensure code after exit() effectless
Cope with the delay(to the next function call) of
v8::Isolate::TerminateExecution()
PR-URL: #45620
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 16ee02f commit ea73702Copy full SHA for ea73702
File tree
Expand file treeCollapse file tree
10 files changed
+76
-5
lines changedOpen diff view settings
Filter options
- lib/internal/process
- src
- test
- cctest
- node-api/test_worker_terminate
- parallel
Expand file treeCollapse file tree
10 files changed
+76
-5
lines changedOpen diff view settings
Collapse file
lib/internal/process/per_thread.js
Copy file name to clipboardExpand all lines: lib/internal/process/per_thread.js+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
103 | 103 | |
104 | 104 | |
105 | 105 | |
| 106 | + |
| 107 | + |
106 | 108 | |
107 | 109 | |
108 | 110 | |
| ||
193 | 195 | |
194 | 196 | |
195 | 197 | |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
196 | 208 | |
197 | 209 | |
198 | 210 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
314 | 314 | |
315 | 315 | |
316 | 316 | |
| 317 | + |
| 318 | + |
| 319 | + |
317 | 320 | |
318 | 321 | |
319 | 322 | |
|
Collapse file
+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
| 75 | + |
| 76 | + |
| 77 | + |
75 | 78 | |
76 | 79 | |
77 | 80 | |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
78 | 89 | |
79 | 90 | |
80 | 91 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
95 | 95 | |
96 | 96 | |
97 | 97 | |
| 98 | + |
| 99 | + |
| 100 | + |
98 | 101 | |
99 | 102 | |
100 | 103 | |
|
Collapse file
test/cctest/test_environment.cc
Copy file name to clipboardExpand all lines: test/cctest/test_environment.cc+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
553 | 553 | |
554 | 554 | |
555 | 555 | |
556 | | - |
| 556 | + |
| 557 | + |
| 558 | + |
557 | 559 | |
558 | 560 | |
559 | 561 | |
|
Collapse file
test/node-api/test_worker_terminate/test.js
Copy file name to clipboardExpand all lines: test/node-api/test_worker_terminate/test.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
23 | | - |
| 22 | + |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
|
Collapse file
test/node-api/test_worker_terminate/test_worker_terminate.c
Copy file name to clipboardExpand all lines: test/node-api/test_worker_terminate/test_worker_terminate.c-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
21 | | - |
22 | 20 | |
23 | 21 | |
24 | 22 | |
|
Collapse file
test/parallel/test-async-hooks-worker-asyncfn-terminate-4.js
Copy file name to clipboardExpand all lines: test/parallel/test-async-hooks-worker-asyncfn-terminate-4.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
15 | 16 | |
16 | 17 | |
17 | 18 | |
|
Collapse file
test/parallel/test-worker-voluntarily-exit-followed-by-addition.js
Copy file name to clipboard+18Lines changed: 18 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 | + |
Collapse file
test/parallel/test-worker-voluntarily-exit-followed-by-throw.js
Copy file name to clipboard+23Lines changed: 23 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 | + |
0 commit comments