@@ -365,10 +365,27 @@ appear immediately after the global section.
365
365
##### Event section
366
366
367
367
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 )
370
370
and before the [ export
371
371
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
+
372
389
The event section declares a list of event types as follows:
373
390
374
391
| Field | Type | Description |
0 commit comments