Commit 865d1bb
authored
Fix some
This commit resolves a few panics in Wasmtime's compilation of
components with respect to tags and the exception-handling wasm
proposal. Despite exception-handling not being enabled in Wasmtime at
this time these panics were still reachable due to an issue in
wasm-tools's validation not being exhaustive enough for this proposal
feature combination: bytecodealliance/wasm-tools#2114.
This is not full support for exceptions since it can't be tested yet,
but this should be enough to ensure that the validator will get far
enough to flag components as otherwise invalid due to using tags that
can't be present (as core wasm tags can't be present in core modules
right now, the `EXCEPTIONS` feature is always disabled).unreachable!() with wasm components (bytecodealliance#10473)1 parent c4486c2 commit 865d1bb
File tree
2 files changed
+19
-8
lines changed- crates/environ/src/component
- translate
2 files changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
1039 | 1040 | | |
1040 | 1041 | | |
1041 | 1042 | | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1045 | 1047 | | |
1046 | 1048 | | |
1047 | 1049 | | |
| |||
1123 | 1125 | | |
1124 | 1126 | | |
1125 | 1127 | | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
| 1128 | + | |
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
1164 | 1165 | | |
1165 | 1166 | | |
1166 | 1167 | | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1167 | 1177 | | |
1168 | 1178 | | |
1169 | 1179 | | |
| |||
1480 | 1490 | | |
1481 | 1491 | | |
1482 | 1492 | | |
| 1493 | + | |
1483 | 1494 | | |
1484 | 1495 | | |
1485 | 1496 | | |
| |||
0 commit comments