Commit 9498d5e
authored
[Parser] Avoid an internal assertion when a function's type does not match params (WebAssembly#7247)
The parser trusted the type when calling `setLocalName`, but that method
asserts of the local index is invalid. Avoid that assertion so we reach the
proper error message later.1 parent 30b7241 commit 9498d5e
File tree
2 files changed
+14
-1
lines changed- src/parser
- test/lit
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
1328 | | - | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1329 | 1332 | | |
1330 | 1333 | | |
1331 | 1334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments