Skip to content

[spec] Typing rule fix for handler#2180

Merged
rossberg merged 2 commits into
WebAssembly:mainfrom
raoxiaojia:handler-typing.fix
Jun 4, 2026
Merged

[spec] Typing rule fix for handler#2180
rossberg merged 2 commits into
WebAssembly:mainfrom
raoxiaojia:handler-typing.fix

Conversation

@raoxiaojia
Copy link
Copy Markdown
Contributor

@raoxiaojia raoxiaojia commented Jun 4, 2026

The effect handler admin instruction currently allows its body to have non-empty consumed types, unlike Label/Frame which correctly assert that the consumed types must be empty.

This causes (incorrectly) valid expressions with no consumed types to get stuck in execution, e.g. [i32.const 1; Handler {catch*} [drop] ].

Copy link
Copy Markdown
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks!

@rossberg rossberg merged commit 507bb1e into WebAssembly:main Jun 4, 2026
10 checks passed
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