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

Improve wasmer invoke function #1054

Merged
merged 4 commits into from
Dec 11, 2019
Merged

Improve wasmer invoke function #1054

merged 4 commits into from
Dec 11, 2019

Conversation

syrusakbary
Copy link
Member

@syrusakbary syrusakbary commented Dec 11, 2019

Description

Prior to this PR, when executing wasmer, we will have this in the stdout:

➜  wasmer fib32.wasm --invoke fib 30
main() returned: [I32(832040)]

Note that it says main() returned even if the function called is fib.
This PR fixes this and improves the messaging also for WASI invoked functions

Review

  • Add a short description of the the change to the CHANGELOG.md file

src/bin/wasmer.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey left a comment

Choose a reason for hiding this comment

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

looks good to me

@syrusakbary
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Dec 11, 2019
1054: Improve wasmer invoke function r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description
Prior to this PR, when executing wasmer, we will have this in the stdout:
 
```bash
➜  wasmer fib32.wasm --invoke fib 30
main() returned: [I32(832040)]
```

Note that it says `main()` returned even if the function called is `fib`.
This PR fixes this and improves the messaging also for WASI invoked functions

<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus Akbary <me@syrusakbary.com>
@bors
Copy link
Contributor

bors bot commented Dec 11, 2019

@bors bors bot merged commit 55c7df2 into master Dec 11, 2019
@bors bors bot deleted the invoke-print-result branch December 11, 2019 01:12
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