forked from wasmerio/wasmer-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api) Avoid using a closure to declare host function.
Closures as host functions are going to be disabled for a moment in Wasmer, see wasmerio/wasmer#1841. In the `wasmer` Python package, we were passing a closure to `Function::new_with_env`. In order to get a regular function, this patch stores the previously captured varibles into the function environment. The only concerned variable is `result_types`.
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters