fitzgen opened PR #9359 from fitzgen:improve-gc-ref-debug-assertions
to bytecodealliance:main
:
Don't just assert that the given GC refs aren't
i31ref
s, but also that they are of the correct type.Note that the other
from_cloned_gc_ref
methods (on, for example,AnyRef
) already do their equivalents of these checks. Just these two were a little looser than they should have been.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
fitzgen requested wasmtime-core-reviewers for a review on PR #9359.
fitzgen requested alexcrichton for a review on PR #9359.
github-actions[bot] commented on PR #9359:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "wasmtime:api", "wasmtime:ref-types"Thus the following users have been cc'd because of the following labels:
- fitzgen: wasmtime:ref-types
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
alexcrichton submitted PR review.
alexcrichton merged PR #9359.
Last updated: Nov 22 2024 at 16:03 UTC