Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Add section table and event section code #67

Merged
merged 5 commits into from
Nov 7, 2018
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
21 changes: 19 additions & 2 deletions proposals/Exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,27 @@ appear immediately after the global section.
##### Event section

The `event` section is the named section 'event'. For ease of validation, this
section comes after the [import
section](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#import-section)
section comes after the [global
section](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#global-section)
and before the [export
section](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#export-section).
So the list of all sections will be:

| Section Name | Code | Description |
| ------------ | ---- | ----------- |
| Type | `1` | Function signature declarations |
| Import | `2` | Import declarations |
| Function | `3` | Function declarations |
| Table | `4` | Indirect function table and other tables |
| Memory | `5` | Memory attributes |
| Global | `6` | Global declarations |
| Event | `12` | Event declarations |
| Export | `7` | Exports |
| Start | `8` | Start function declaration |
| Element | `9` | Elements section |
| Code | `10` | Function bodies (code) |
| Data | `11` | Data segments |

The event section declares a list of event types as follows:

| Field | Type | Description |
Expand Down