Skip to content

Conversation

@krodak
Copy link
Member

@krodak krodak commented Jan 14, 2026

Problem

enumHelpers is used as parameter with some of the struct methods in order to enable using enum type within struct. But if there are no enums with @js annotation, enumHelpers was never created.

Fix

Made enumHelpers and structHelpers unconditionally available and generated within .js files for simplicity, as with other stack based types they will be needed as well (e.g. array soon to be introduced).
Additionally moved them to JSGlueVariableScope to avoid hardcoded string repetition

@krodak krodak self-assigned this Jan 14, 2026
@kateinoigakukun kateinoigakukun merged commit fc5b2d9 into swiftwasm:main Jan 14, 2026
10 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