Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions proposals/exception-handling/Exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,18 @@ document](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md).

The type `exnref` is represented by the type opcode `-0x17`.

When combined with the [GC proposal](https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md),
there also is a value type `nullexnref` with opcode `-0x0c`.
Furthermore, these opcodes also function as heap type,
i.e., `exn` is a new heap type with opcode `-0x17`,
and `noexn` is a new heap type with opcode `-0x0c`;
`exnref` and `nullexnref` are shorthands for `(ref null exn)` and `(ref null noexn)`, respectively.

The heap type `noexn` is a subtype of `exn`.
They are not in a subtype relation with any other type (except bottom),
such that they form a new disjoint hierarchy of heap types.


##### tag_type

We reserve a bit to denote the exception attribute:
Expand Down