bytecodealliance / bytecodealliance/wasm-tools

`wasmparser::validator::ComponentState::validate_and_register_named_types` should return `Result` instead of `bool`

Open
#1,486 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.