Commit e815655
wasi: throw on failed uvwasi_init()
Prior to this commit, if uvwasi_init() failed in any way, Node
would abort due to a failed CHECK_EQ(). This commit changes
that behavior to a thrown exception.
PR-URL: #31076
Fixes: #30878
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 6784296 commit e815655Copy full SHA for e815655
File tree
Expand file treeCollapse file tree
2 files changed
+48
-1
lines changedOpen diff view settings
Filter options
- src
- test/wasi
Expand file treeCollapse file tree
2 files changed
+48
-1
lines changedOpen diff view settings
Collapse file
+43-1Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
73 | 73 | |
74 | 74 | |
75 | 75 | |
| 76 | + |
76 | 77 | |
77 | 78 | |
| 79 | + |
| 80 | + |
78 | 81 | |
| 82 | + |
79 | 83 | |
80 | 84 | |
81 | 85 | |
82 | 86 | |
83 | 87 | |
84 | 88 | |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
85 | 118 | |
86 | 119 | |
87 | 120 | |
88 | 121 | |
89 | 122 | |
90 | 123 | |
91 | | - |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
92 | 134 | |
93 | 135 | |
94 | 136 | |
|
Collapse file
test/wasi/test-wasi-options-validation.js
Copy file name to clipboardExpand all lines: test/wasi/test-wasi-options-validation.js+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
0 commit comments