Skip to content

Rename assert_uncaught_exception to assert_exception - #324

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
takikawa:assert_exception
Aug 21, 2021
Merged

alexcrichton merged 1 commit into
bytecodealliance:mainfrom
takikawa:assert_exception

Conversation

@takikawa

@takikawa takikawa commented Aug 21, 2021 •

Copy link
Copy Markdown
Contributor

The assert_uncaught_exception assertion used for exception handling was renamed to assert_exception in the final version of

WebAssembly/exception-handling#160

but was out-of-date in the wast crate. This PR does the renaming.

(example of the current assertion syntax used in tests here: https://github.com/WebAssembly/exception-handling/blob/master/test/core/try_catch.wast#L157)

Note: the upstream "testsuite" repo isn't updated for exceptions yet, but I tested it by updating it locally. There are some differences in error messages vs. expected messages (will try to fix these sometime), but otherwise it looks pretty good after this change.

The assert_uncaught_exception assertion used for exception handling
was renamed to assert_exception in the final version of

  WebAssembly/exception-handling#160

but was out-of-date in the wast crate.
@alexcrichton
alexcrichton merged commit 9b219d5 into bytecodealliance:main Aug 21, 2021
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