-
Notifications
You must be signed in to change notification settings - Fork 822
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
Support closures as host functions tracking issue #1840
Comments
1841: Disable closures as host functions for now + docs + tests r=syrusakbary a=MarkMcCaskey Resolves #1811 for now Part of #1840 # Review - [x] Add a short description of the the change to the CHANGELOG.md file Co-authored-by: Mark McCaskey <mark@wasmer.io> Co-authored-by: Syrus Akbary <me@syrusakbary.com>
1841: Disable closures as host functions for now + docs + tests r=MarkMcCaskey a=MarkMcCaskey Resolves #1811 for now Part of #1840 # Review - [x] Add a short description of the the change to the CHANGELOG.md file Co-authored-by: Mark McCaskey <mark@wasmer.io> Co-authored-by: Syrus Akbary <me@syrusakbary.com>
This seems like it'd help the ergonomics of environments a bunch. Simple example:
vs
Slightly more complex example:
vs
This latter example has a couple of points worth observing:
|
This should be solved by Wasmer 3.0 |
The current master still contains an |
@silwol Yeah, |
Docs for 3.1.1 and 3.2.0-alpha still say that Function will panic with captured env. Does that still need to be updated? |
Wasmer does not currently support closures (functions with captured environments) as host functions, this is a tracking issue for progress on this feature.
The current plan is to reject closures in 1.0 and possibly support them in the future. Please let us know if this feature is important to your use case.
The text was updated successfully, but these errors were encountered: