Commit dd83bd2
wasi: add returnOnExit option
This commit adds a WASI option allowing the __wasi_proc_exit()
function to return an exit code instead of forcefully terminating
the process.
PR-URL: #32101
Fixes: #32093
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent 7c739aa commit dd83bd2Copy full SHA for dd83bd2
File tree
Expand file treeCollapse file tree
4 files changed
+60
-5
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- test/wasi
Expand file treeCollapse file tree
4 files changed
+60
-5
lines changedOpen diff view settings
Collapse file
+4Lines changed: 4 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
61 | 65 | |
62 | 66 | |
63 | 67 | |
|
Collapse file
+34-5Lines changed: 34 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
18 | 19 | |
19 | 20 | |
20 | 21 | |
| ||
26 | 27 | |
27 | 28 | |
28 | 29 | |
29 | | - |
| 30 | + |
30 | 31 | |
31 | 32 | |
32 | 33 | |
| ||
56 | 57 | |
57 | 58 | |
58 | 59 | |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
59 | 65 | |
60 | 66 | |
61 | 67 | |
62 | 68 | |
63 | 69 | |
64 | 70 | |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
65 | 75 | |
66 | 76 | |
67 | 77 | |
68 | 78 | |
| 79 | + |
69 | 80 | |
70 | 81 | |
71 | 82 | |
| ||
93 | 104 | |
94 | 105 | |
95 | 106 | |
96 | | - |
97 | | - |
98 | | - |
99 | | - |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
100 | 119 | |
101 | 120 | |
102 | 121 | |
103 | 122 | |
104 | 123 | |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
Collapse file
test/wasi/test-return-on-exit.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/wasi/test-wasi-options-validation.js
Copy file name to clipboardExpand all lines: test/wasi/test-wasi-options-validation.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
24 | 28 | |
25 | 29 | |
26 | 30 | |
|
0 commit comments