Skip to content

Fix br_on_cast parsing with non-nullable extra values - #9036

Open
pttydou wants to merge 1 commit into
WebAssembly:mainfrom
pttydou:fix-br-on-cast-extra-values
Open

Fix br_on_cast parsing with non-nullable extra values#9036
pttydou wants to merge 1 commit into
WebAssembly:mainfrom
pttydou:fix-br-on-cast-extra-values

Conversation

@pttydou

@pttydou pttydou commented Aug 23, 2026

Copy link
Copy Markdown

Fixes #8949.

Text parsing did not normalize synthesized non-defaultable scratch locals after finishing each function, unlike binary reading. This applies the existing fixup and preserves exact reference types when building nullable-output br_on_cast fallthrough values.

Tests:

  • python out/bin/binaryen-lit -vv test/lit/basic/br-on-cast-extra-values.wast test/lit/basic/scratch-local-roundtrip.wast test/lit/basic/extra-branch-values.wast test/lit/basic/unreachable-br-on-cast-desc.wast test/lit/basic/exact-references.wast test/lit/cast-to-basic.wast
  • ruff check

@pttydou
pttydou requested a review from a team as a code owner August 23, 2026 15:22
@pttydou
pttydou requested review from kripken and removed request for a team August 23, 2026 15:22
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.

Parse bug with extra non-nullable br_on_cast values

1 participant