Skip to content

Issue a nicer error message on wasm components.#2515

Merged
sbc100 merged 4 commits into
WebAssembly:mainfrom
sunfishcode:main
Dec 6, 2024
Merged

Issue a nicer error message on wasm components.#2515
sbc100 merged 4 commits into
WebAssembly:mainfrom
sunfishcode:main

Conversation

@sunfishcode

Copy link
Copy Markdown
Member

Decode just enough of the component binary format to recognize when the input is a component, and issue a dedicated error message for it.

Before:

0000008: error: bad wasm file version: 0x1000d (expected 0x1)

After:

0000008: error: wasm components are not yet supported in this tool

@SoniEx2

SoniEx2 commented Nov 25, 2024

Copy link
Copy Markdown
Collaborator

this should probably have a dedicated test for it fwiw

Comment thread include/wabt/binary.h Outdated
@sunfishcode

Copy link
Copy Markdown
Member Author

@sbc100 I've addressed the review feedback; would you mind taking a look? Thanks!

@sbc100 sbc100 enabled auto-merge (squash) December 4, 2024 19:41
Decode just enough of the component binary format to recognize when
the input is a component, and issue a dedicated error message for it.

Before:

0000008: error: bad wasm file version: 0x1000d (expected 0x1)

After:

0000008: error: wasm components are not yet supported in this tool
@sunfishcode

Copy link
Copy Markdown
Member Author

Rebased on main to pick up the CI fixes.

@sbc100 sbc100 merged commit 4e7d7ef into WebAssembly:main Dec 6, 2024
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.

3 participants