-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wasmparser: fix component validation for type instantiation arguments. This commit fixes validation when a component is instantiated that imports a type and the type is provided as an instantiation argument. Previously, the type was being ignored and not populated in the list of instantiation arguments, resulting in an incorrect validation message of "instantiation argument not provided". The fix is to add type arguments to the arguments list. * wasm-compose: fix incorrect type indexes caused by type imports. Currently `wasm-compose` writes all core and component types out in contiguous sections. The problem with this approach is that imports of types occur *after* these sections, so an import of a type will be assigned an incorrect type index. The fix is to simply encode core types, component types, and imports as encountered rather than trying to group them all into the same section.
- Loading branch information
1 parent
673e74b
commit 8d16aad
Showing
6 changed files
with
157 additions
and
112 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
Oops, something went wrong.