Skip to content

Commit f286e98

Browse files
aheejinioannad
authored andcommitted
Add section table and event section code (WebAssembly#67)
1 parent c75671d commit f286e98

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

proposals/Exceptions.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,27 @@ appear immediately after the global section.
365365
##### Event section
366366

367367
The `event` section is the named section 'event'. For ease of validation, this
368-
section comes after the [import
369-
section](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#import-section)
368+
section comes after the [global
369+
section](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#global-section)
370370
and before the [export
371371
section](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#export-section).
372+
So the list of all sections will be:
373+
374+
| Section Name | Code | Description |
375+
| ------------ | ---- | ----------- |
376+
| Type | `1` | Function signature declarations |
377+
| Import | `2` | Import declarations |
378+
| Function | `3` | Function declarations |
379+
| Table | `4` | Indirect function table and other tables |
380+
| Memory | `5` | Memory attributes |
381+
| Global | `6` | Global declarations |
382+
| Event | `12` | Event declarations |
383+
| Export | `7` | Exports |
384+
| Start | `8` | Start function declaration |
385+
| Element | `9` | Elements section |
386+
| Code | `10` | Function bodies (code) |
387+
| Data | `11` | Data segments |
388+
372389
The event section declares a list of event types as follows:
373390

374391
| Field | Type | Description |

0 commit comments

Comments
 (0)