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

[rwasm] Call wasm module's start function #127

Closed
ospencer opened this issue Aug 11, 2021 · 0 comments · Fixed by #130
Closed

[rwasm] Call wasm module's start function #127

ospencer opened this issue Aug 11, 2021 · 0 comments · Fixed by #130

Comments

@ospencer
Copy link
Contributor

Many wasm modules use the start function to perform any initialization the module needs before the exports are called, so it'd be helpful if rwasm called it by default! This is similar to the optional init function a Runnable wasm module can expose and is a part of the WebAssembly specification. init could be renamed to _start for a unified way of doing initialization, or both could be called (with _start being run before init) for backward compatibility.

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 a pull request may close this issue.

1 participant