Skip to content

Fix parsing empty compact import encoding groups - #2664

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-parse-compact-imports
Sep 15, 2026
Merged

alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-parse-compact-imports

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit fixes text parsing for compact imports when there aren't any items. Notably if the import group is entirely empty that's implicitly "encoding 1" and if it's only empty of items then a type is expected and it's "encoding 2".

Closes #2663

This commit fixes text parsing for compact imports when there aren't any
`item`s. Notably if the import group is entirely empty that's implicitly
"encoding 1" and if it's only empty of items then a type is expected and
it's "encoding 2".

Closes bytecodealliance#2663
@alexcrichton
alexcrichton requested a review from a team as a code owner September 15, 2026 21:54
@alexcrichton
alexcrichton requested review from dicej and removed request for a team September 15, 2026 21:54
@alexcrichton
alexcrichton added this pull request to the merge queue Sep 15, 2026
Merged via the queue into bytecodealliance:main with commit 3adfdbd Sep 15, 2026
37 checks passed
@alexcrichton
alexcrichton deleted the fix-parse-compact-imports branch September 15, 2026 23:06
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.

wast2json fails on compact-import-section spec tests

2 participants