Skip to content

Fix checking of delegate target block kind.#1605

Merged
binji merged 1 commit intoWebAssembly:masterfrom
takikawa:delegate-target-fix
Feb 24, 2021
Merged

Fix checking of delegate target block kind.#1605
binji merged 1 commit intoWebAssembly:masterfrom
takikawa:delegate-target-fix

Conversation

@takikawa
Copy link
Contributor

This PR fixes an issue with the validation of the delegate exception instruction: it was failing to check that the delegate target block was a valid kind of block. It should now follow the clarified behavior of delegate from this issue: WebAssembly/exception-handling#146

As clarified in:

  WebAssembly/exception-handling#146

the delegate target cannot be a `block` or `loop`. This commit
also adds a failure test that covers several cases discussed
in that issue.
@binji binji merged commit 8d9f5ac into WebAssembly:master Feb 24, 2021
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