Skip to content

Conversation

@vados-cosmonic
Copy link
Contributor

This commit fixes a regression in function generation when error handling is involved.

The buggy code over-eagerly checks whether there is an error type type present on a result, when there may legitimately not be (e.g. result<t> in WIT). The fix is to check only for whether the types are returned as a pair (indicating a result) at all.

@vados-cosmonic vados-cosmonic force-pushed the fix=embedding-splicer-error-handling-regression branch from 012cd90 to 592f849 Compare July 14, 2025 18:25
This commit fixes a regression in function generation when error
handling is involved.

The buggy code over-eagerly checks whether there is an error type
type present on a result, when there may legitimately not
be (e.g. `result<t>` in WIT). The fix is to check *only* for whether
the types are returned as a pair (indicating a `result`) at all.
@vados-cosmonic vados-cosmonic force-pushed the fix=embedding-splicer-error-handling-regression branch from 592f849 to d1fd50f Compare July 14, 2025 18:25
@vados-cosmonic vados-cosmonic merged commit 0071816 into bytecodealliance:main Jul 16, 2025
16 checks passed
@vados-cosmonic vados-cosmonic deleted the fix=embedding-splicer-error-handling-regression branch July 16, 2025 13:57
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.

2 participants