File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
proposals/exception-handling Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,18 @@ document](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md).
331
331
332
332
The type ` exnref ` is represented by the type opcode ` -0x17 ` .
333
333
334
+ When combined with the [ GC proposal] ( https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md ) ,
335
+ there also is a value type ` nullexnref ` with opcode ` -0x0c ` .
336
+ Furthermore, these opcodes also function as heap type,
337
+ i.e., ` exn ` is a new heap type with opcode ` -0x17 ` ,
338
+ and ` noexn ` is a new heap type with opcode ` -0x0c ` ;
339
+ ` exnref ` and ` nullexnref ` are shorthands for ` (ref null exn) ` and ` (ref null noexn) ` , respectively.
340
+
341
+ The heap type ` noexn ` is a subtype of ` exn ` .
342
+ They are not in a subtype relation with any other type (except bottom),
343
+ such that they form a new disjoint hierarchy of heap types.
344
+
345
+
334
346
##### tag_type
335
347
336
348
We reserve a bit to denote the exception attribute:
You can’t perform that action at this time.
0 commit comments