Commit 09ca76b
test: verify that WASI errors are rethrown
This commit adds a test to verify that exceptions thrown from a
WASI application are properly caught and rethrown. This also
gets the code coverage in lib/wasi.js back to 100%.
PR-URL: #32157
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 3e9012a commit 09ca76bCopy full SHA for 09ca76b
File tree
Expand file treeCollapse file tree
1 file changed
+15
-2
lines changedOpen diff view settings
Filter options
- test/wasi
Expand file treeCollapse file tree
1 file changed
+15
-2
lines changedOpen diff view settings
Collapse file
test/wasi/test-return-on-exit.js
Copy file name to clipboardExpand all lines: test/wasi/test-return-on-exit.js+15-2Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | | - |
10 | 8 | |
11 | 9 | |
12 | 10 | |
13 | 11 | |
14 | 12 | |
| 13 | + |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
0 commit comments