Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue a nicer error message on wasm components. #2515

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

sunfishcode
Copy link
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
Copy link
Collaborator

SoniEx2 commented Nov 25, 2024

this should probably have a dedicated test for it fwiw

@sunfishcode
Copy link
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
Member Author

Rebased on main to pick up the CI fixes.

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

3 participants