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

How to get return code from main() function? #255

Closed
Zxilly opened this issue Mar 30, 2021 · 0 comments
Closed

How to get return code from main() function? #255

Zxilly opened this issue Mar 30, 2021 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@Zxilly
Copy link

Zxilly commented Mar 30, 2021

I'd like to run some different wasm files in the browser. And I want to get the running time of wasm instance. For example, a callback when instance exit?

Node.js add a opetion called returnOnExit at nodejs/node#32101, so did deno at denoland/deno#8605

So i ask for this option for wasmer-js/wasi

I'd like to contribute on this, but i really confused that is this possible to implement, or it was controlled by V8 Engine?

Could you please give me some suggestion? @syrusakbary

image

I mean, got notified when call $__wasi_proc_exit

@Hywan Hywan added the question Further information is requested label Mar 30, 2021
@Zxilly Zxilly closed this as completed Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants