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

bug: Parameterize and Tokenizable for wasm enums is broken #928

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

segfault-magnet
Copy link
Contributor

closes: #927

Our wasm tests didn't use enums at all and thus didn't catch that there is no ::alloc::panic only ::std::panic.

The tests have been expanded to include both structs and enums.

Checklist

  • I have linked to any relevant issues.
  • I have updated the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary labels.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@segfault-magnet segfault-magnet added bug Something isn't working wasm labels Apr 12, 2023
@segfault-magnet segfault-magnet requested a review from a team April 12, 2023 02:18
@segfault-magnet segfault-magnet self-assigned this Apr 12, 2023
Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

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

Nice @segfault-magnet. I knew the lack of extensive type-related tests would bite us in the ass at some point, haha.

@segfault-magnet segfault-magnet merged commit a4f1ac2 into master Apr 12, 2023
@segfault-magnet segfault-magnet deleted the segfault-magnet/enum-wasm-bug branch April 12, 2023 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enums don't work in wasm
2 participants