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

Add test for ImportObject's allow_missing_functions #1121

Merged
merged 2 commits into from
Jan 10, 2020

Conversation

MarkMcCaskey
Copy link
Contributor

work in progress, testing to see if this test fails CI

resolves #1118

Review

  • Add a short description of the the change to the CHANGELOG.md file

@MarkMcCaskey
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Jan 7, 2020
@bors
Copy link
Contributor

bors bot commented Jan 7, 2020

try

Build failed

  • wasmerio.wasmer

@MarkMcCaskey MarkMcCaskey marked this pull request as ready for review January 9, 2020 21:01
bors bot added a commit that referenced this pull request Jan 10, 2020
1128: fix(runtime-core) Avoid crashing when missing host functions are allowed r=Hywan a=Hywan

Fix #1118. #1121 can be merged after

This PR fixes 2 things:

* When droping the import backing, check that `vm::FuncCtx` isn't null before dropping it,
* Use an `always_trap` as a placeholder host function when a host function is missing.

Co-authored-by: Ivan Enderlin <[email protected]>
@Hywan
Copy link
Contributor

Hywan commented Jan 10, 2020

bors r+

bors bot added a commit that referenced this pull request Jan 10, 2020
1121: Add test for ImportObject's `allow_missing_functions` r=Hywan a=MarkMcCaskey

work in progress, testing to see if this test fails CI

resolves #1118 

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <[email protected]>
Co-authored-by: Ivan Enderlin <[email protected]>
@Hywan Hywan self-assigned this Jan 10, 2020
@bors
Copy link
Contributor

bors bot commented Jan 10, 2020

Build succeeded

@bors bors bot merged commit 66574e3 into master Jan 10, 2020
@bors bors bot deleted the fix/import-object-allow-missing branch January 10, 2020 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧪 tests I love tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow_missing_functions doesn't work in release mode
2 participants