Skip to content

[EH] Update C and binaryen.js API for delegate #3565

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

Merged
merged 3 commits into from
Feb 13, 2021

Conversation

aheejin
Copy link
Member

@aheejin aheejin commented Feb 12, 2021

This updates C and binaryen.js API to match the new Try structure to
support delegate, added in #3561. Now try can take a name (which can
be null) like a block, and also has an additional delegateTarget field
argument which should only be used for try-delegate and otherwise null.

This also adds several more variant of makeTry methods in
wasm-builder. Some are for making try-delegate and some are for
try-catch(_all).

This updates C and binaryen.js API to match the new `Try` structure to
support `delegate`, added in WebAssembly#3561. Now `try` can take a name (which can
be null) like a block, and also has an additional `delegateTarget` field
argument which should only be used for try-delegate and otherwise null.

This also adds several more variant of `makeTry` methods in
wasm-builder. Some are for making try-delegate and some are for
try-catch(_all).
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

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

LGTM with @kripken's comment as well.

@aheejin aheejin merged commit c12cc3f into WebAssembly:main Feb 13, 2021
@aheejin aheejin deleted the try_binaryen_c branch February 13, 2021 12:23
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