Skip to content

Fix wasmtime.loader with multiple functions #66

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

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

alexcrichton
Copy link
Member

This is showing off how I'm not exactly a Python expert, but the
previous iteration didn't work because lambda closure captures didn't
work as I expected!

Closes #65

This is showing off how I'm not exactly a Python expert, but the
previous iteration didn't work because lambda closure captures didn't
work as I expected!

Closes bytecodealliance#65
@alexcrichton
Copy link
Member Author

The idiom here is drawing inspiration from https://stackoverflow.com/questions/2295290/what-do-lambda-function-closures-capture/2295372#2295372 for what to do.

@alexcrichton alexcrichton merged commit c200754 into bytecodealliance:main Aug 18, 2021
@alexcrichton alexcrichton deleted the fix-capture branch August 18, 2021 14:38
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.

wrong function called from module when using wasmtime loader
1 participant