Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beef up validity assertions on Resolve #1785

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

alexcrichton
Copy link
Member

This commit extends the Resolve::assert_valid function with more assertions about the structure of worlds notably to guarantee they are "elaborated" meaning that they always list all dependencies of imports. This is required by bindings generators and encoding. This property is already upheld internally and is intended to reflect a preexisting property with dynamic assertion checks.

The underlying motivation for this is to assist in the development and fuzzing of #1784.

This commit extends the `Resolve::assert_valid` function with more
assertions about the structure of worlds notably to guarantee they are
"elaborated" meaning that they always list all dependencies of imports.
This is required by bindings generators and encoding. This property is
already upheld internally and is intended to reflect a preexisting
property with dynamic assertion checks.

The underlying motivation for this is to assist in the development and
fuzzing of bytecodealliance#1784.
@alexcrichton alexcrichton added this pull request to the merge queue Sep 12, 2024
Merged via the queue into bytecodealliance:main with commit de775dd Sep 12, 2024
30 checks passed
@alexcrichton alexcrichton deleted the more-asserts branch September 12, 2024 21:11
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.

2 participants