Skip to content

WasmModuleProcessor failing with when processing a wasm with an import/export TAG#76

Merged
andreaTP merged 1 commit into
bytecodealliance:mainfrom
RefuX:fix/wasm-codegen-tag
Jun 29, 2026
Merged

WasmModuleProcessor failing with when processing a wasm with an import/export TAG#76
andreaTP merged 1 commit into
bytecodealliance:mainfrom
RefuX:fix/wasm-codegen-tag

Conversation

@RefuX

@RefuX RefuX commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

My wasm file happens to have a TAG export, which the ModuleInterfaceCodegen is blowing up on (javaparser null reference), since exportFieldType = null.

The goal of this fix is just to stop it blowing up.

For imports it seemed trivial enough to add TAG support, so I did.

…ded generation for tag import. Export TAG has no generation but is skipped, enabling generation to complete.
@RefuX RefuX requested a review from andreaTP as a code owner June 29, 2026 16:08

@andreaTP andreaTP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks for the help!

Please beware that you might find additional gaps using the annotation processor + GC (tracked in #70 ).

For the moment, this is good improvement.

@andreaTP andreaTP merged commit cf2f59b into bytecodealliance:main Jun 29, 2026
25 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