Skip to content

Commit 176d5c3

Browse files
authored
Update explainer for the new spec (WebAssembly#137)
This updates the explainer text according to the new spec we agreed in the 09-15-2020 CG meeting and discussions afterwards. The following are modifications and clarifications we made after the 09-15-2020 CG meeting, and the relevant issue posts, if any: https://github.com/WebAssembly/meetings/blob/master/main/2020/CG-09-15.md - `catch_br` wasm renamed to `delegate` (WebAssembly#133) - `rethrow` gains an immediate argument (WebAssembly#126) - Removed dependences on the reference types proposal and the multivalue proposal. The multivalue proposal was previously listed as dependent because 1. `try` is basically a `block`, so it can have multivalue input/output 2. `br_on_exn` can extract multiple values from a `block`. We don't have `br_on_exn` anymore, and I'm not sure 1 is a strong enough reason to make it a dependence. - Mention `rethrow` cannot rethrow exceptions caught by `unwind` (WebAssembly#142 and WebAssembly#137) - Mention some runtimes, especially web VMs, can attach stack traces to the exception object, implying stack traces are not required for all VMs - Update label/validation rules for `delegate` and `rethrow` (WebAssembly#146) - Finalize opcodes for `delegate` (0x18) and `catch_all` (0x19) (WebAssembly#145 and WebAssembly#147) I believe this resolves many previous issue threads, so I'll close them. Please reopen them if you think there are things left for discussions in those issues. Resolves WebAssembly#113, resolves WebAssembly#126, resolves WebAssembly#127, resolves WebAssembly#128, resolves WebAssembly#130, resolves WebAssembly#142, resolves WebAssembly#145, resolves WebAssembly#146, resolves WebAssembly#147.
1 parent 4695ec3 commit 176d5c3

File tree

2 files changed

+242
-179
lines changed

2 files changed

+242
-179
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ for adding exception handling to WebAssembly.
88
* See the [proposal overview](proposals/exception-handling/Exceptions.md) for a
99
summary of the proposal.
1010

11-
The repository is now based on the [reference types proposal](proposals/reference-types/Overview.md) and includes all respective changes.
12-
1311
Original README from upstream repository follows...
1412

1513
# spec

0 commit comments

Comments
 (0)