bytecodealliance / bytecodealliance/wasm-tools
`wasmparser::validator::ComponentState::validate_and_register_named_types` should return `Result` instead of `bool`
Open
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 351
- Avg merge
- 16h 57m
- Merged PRs (30d)
- 38
Description
Right now the validator uses `wasmparser::validator::ComponentState::validate_and_register_named_types` to ensure that a given extern only refers to named types, but it only returns a `bool` instead of a `Result`. This makes debugging much more difficult as one cannot be sure what the actual issue is without using a debugger or patching in a local copy of `wasmparser` to add debug logs.
Contributor guide
Assessment
This issue has not been assessed yet.