Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an un-expanded type in table init exprs (#831)
This fixes a recent fuzz-bug found from #823 where initialization expressions needed to be expanded before resolution.
- Loading branch information
1 parent
c280be6
commit 74e3029
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(assert_invalid | ||
(module | ||
(table funcref (elem (call_indirect))) | ||
) | ||
"non-constant operator") | ||
|
||
(assert_invalid | ||
(module | ||
(table 1 1 funcref (call_indirect)) | ||
) | ||
;; note that this error message will change when wasmparser implements the | ||
;; above feature | ||
"invalid value type") |