Skip to content

Add BinaryenModuleParseWithFeatures to C and JS APIs#8872

Open
Derppening wants to merge 1 commit into
WebAssembly:mainfrom
Derppening:add-module-parse-with-features-api
Open

Add BinaryenModuleParseWithFeatures to C and JS APIs#8872
Derppening wants to merge 1 commit into
WebAssembly:mainfrom
Derppening:add-module-parse-with-features-api

Conversation

@Derppening

Copy link
Copy Markdown

This PR implements support for parsing the text of a module with a given feature set in both C and Javascript.

This is necessary as not all modules can be successfully parsed with only the MVP feature set being enabled. One example is the module added as part of the test_parsing_with_features test case - If using BinaryenModuleParse, the module will fail to parse with

error: invalid type: distinct rec groups would be identical after binary writing (to resolve this, use --enable-gc)

and since this error is thrown at parse-time, there is no way to enable the GC feature prior to parsing.

@Derppening Derppening requested a review from a team as a code owner June 29, 2026 08:29
@Derppening Derppening requested review from aheejin and removed request for a team June 29, 2026 08:29
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.

1 participant