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

Add more tests exercising the component model #606

Merged
merged 1 commit into from May 18, 2022

Conversation

alexcrichton
Copy link
Member

This is mostly adding tests for invalid constructs in the component
model to ensure that wasmparser generates the right error in the future
during refactorings. Additionally some miscellaneous items are fixed
along the way:

  • Some dead code in wasmparser was removed
  • The type check error message for component functions was fixed when
    results mismatch.
  • The wast crate is a little more lax about alias statements that
    are clearly out of bounds (lets wasmparser generate the error
    instead).
  • Parsing support for (component quote "...") was added

This is mostly adding tests for invalid constructs in the component
model to ensure that wasmparser generates the right error in the future
during refactorings. Additionally some miscellaneous items are fixed
along the way:

* Some dead code in wasmparser was removed
* The type check error message for component functions was fixed when
  results mismatch.
* The `wast` crate is a little more lax about `alias` statements that
  are clearly out of bounds (lets `wasmparser` generate the error
  instead).
* Parsing support for `(component quote "...")` was added
@alexcrichton alexcrichton merged commit 12427be into bytecodealliance:main May 18, 2022
@alexcrichton alexcrichton deleted the add-tests branch May 18, 2022 23:37
code-terror pushed a commit to code-terror/wasm-tools that referenced this pull request Aug 24, 2022
This is mostly adding tests for invalid constructs in the component
model to ensure that wasmparser generates the right error in the future
during refactorings. Additionally some miscellaneous items are fixed
along the way:

* Some dead code in wasmparser was removed
* The type check error message for component functions was fixed when
  results mismatch.
* The `wast` crate is a little more lax about `alias` statements that
  are clearly out of bounds (lets `wasmparser` generate the error
  instead).
* Parsing support for `(component quote "...")` was added
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.

None yet

2 participants