Commit e629264
authored
Properly error on a return in a non-function scope (WebAssembly#7256)
Without this we get an assertion later on,
child-typer.h:720: Assertion `func' failed.
Returns use the function to find the return values, so like local
get and set, we must error early on lacking a function.1 parent d26ad82 commit e629264
File tree
2 files changed
+13
-0
lines changed- src/wasm
- test/lit
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
1701 | 1704 | | |
1702 | 1705 | | |
1703 | 1706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments