-
Notifications
You must be signed in to change notification settings - Fork 4
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
Enable function invocation by name #30
Conversation
PR marked as draft until I get some feedback for the question in the "Todo section" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Looks good also to me. I see the value in modifying the other tests so that the code is more readable. |
Using named invocations in the tests does not really have any downsides and provides better readability, so I'd say it's worth it.
Yes, the |
The changes lgtm, however I would wish for the commit history to be reworked into two commits, one for the initial draft, one for the change of the tests. |
92b177c
to
3562f6a
Compare
@george-cosma please refactor the two commit messages to be compliant with conventional commit. If you rebase from main, you will also get a CI check for that. |
Signed-off-by: George Cosma <[email protected]>
Signed-off-by: George Cosma <[email protected]>
3562f6a
to
383e5cb
Compare
Done 👍 |
Pull Request Overview
This pull request adds the ability to invoke a function using its name rather than its id.
This feature is needed as part of parsing
wast
files. Their equivalent ofassert
uses the name of functions. Relevant issue: #9Testing Strategy
This pull request was tested by modifying the
add_one
integration test to invoke its function by name rather than by index.TODO or Help Wanted
This pull request still needs...
RuntimeInstance
be responsible for holding onto the exports?Formatting
cargo fmt
cargo check
cargo build
nix fmt
treefmt
Author
Signed-off-by: George Cosma [email protected]