Skip to content

Allow JS and C to read the start function of a module#7424

Merged
kripken merged 6 commits intoWebAssembly:mainfrom
GulgDev:patch-1
Apr 2, 2025
Merged

Allow JS and C to read the start function of a module#7424
kripken merged 6 commits intoWebAssembly:mainfrom
GulgDev:patch-1

Conversation

@GulgDev
Copy link
Copy Markdown
Contributor

@GulgDev GulgDev commented Apr 1, 2025

This PR adds BinaryenGetStart to the C api and the corresponding module.getStart JS wrapper.

Copy link
Copy Markdown
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Code looks good. Please add a test in test/example/c-api-kitchen-sink.c.

@GulgDev
Copy link
Copy Markdown
Contributor Author

GulgDev commented Apr 2, 2025

@kripken Done! Added tests for C and JS.

@GulgDev GulgDev requested a review from kripken April 2, 2025 16:25
Copy link
Copy Markdown
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Looks good, but see the errors on CI. I think you need to add the declaration in the .h file alongside the .cpp

@kripken kripken merged commit 570de79 into WebAssembly:main Apr 2, 2025
14 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