Skip to content

Add map component type regression test#107

Closed
yordis wants to merge 1 commit into
bytecodealliance:mainfrom
yordis:yordis/wit-map-support
Closed

Add map component type regression test#107
yordis wants to merge 1 commit into
bytecodealliance:mainfrom
yordis:yordis/wit-map-support

Conversation

@yordis

@yordis yordis commented Jun 30, 2026

Copy link
Copy Markdown
  • Guards the --component-type path for WIT map definitions now that the parser stack understands them.
  • Ensures validation covers component-model features used by newly supported WIT types.

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Comment thread tests/all.rs
fn assert_component(bytes: &[u8]) {
assert!(wasmparser::Parser::is_component(&bytes));
wasmparser::Validator::new().validate_all(&bytes).unwrap();
wasmparser::Validator::new_with_features(wasmparser::WasmFeatures::all())

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it ok to enable all, or d you prefer I find a way to opt-in for things? I rather make the whole thing to work in the testing, just in case turning things off causes issues that we didn't see as a whole

@yordis

yordis commented Jul 9, 2026

Copy link
Copy Markdown
Author

After talking to @alexcrichton it was decided that we should close this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant