aboutsummaryrefslogtreecommitdiff
path: root/BinaryEncoding.md
diff options
context:
space:
mode:
authorJF Bastien <github@jfbastien.com>2016-02-25 09:04:28 -0800
committerJF Bastien <github@jfbastien.com>2016-02-25 09:04:28 -0800
commita7d67f1f03d5000c1a036499d932327060349e24 (patch)
tree532ca57759b39bee8c95e771408f4052c054e12e /BinaryEncoding.md
parentcbb59025710350a5884acd3ce9a284f7fdf88065 (diff)
downloadnanowasm-design-a7d67f1f03d5000c1a036499d932327060349e24.tar.gz
Unknown sections
Fixes #208. A later PR will make sure all sections start with the same format (so all sections use bytes, instead of count, making it easy to know the byte count of unknown sections). We'll also use strings instead.
Diffstat (limited to 'BinaryEncoding.md')
-rw-r--r--BinaryEncoding.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md
index fd5c031..a416c7a 100644
--- a/BinaryEncoding.md
+++ b/BinaryEncoding.md
@@ -187,13 +187,15 @@ stored to from dedicated instructions.
| type | `uint8` | the type of the global, as a memory type |
| exported | `uint8` | a boolean indicating whether the global variable is exported |
-### WorkInProgress: WLL section
+### Unknown sections
| Field | Type | Description |
| ----- | ----- | ----- |
-| id = `0x11` | `uint8` | section identifier for globals |
-| size | `varuint32` | size of this section in bytes |
-| body | `bytes` | contents of this section |
+| id | `uint8` | section identifier |
+| size | `varuint32` | size of this section in bytes |
+| body | `bytes` | contents of this section |
+
+Sections whose ID is unknown to the WebAssembly implementation are ignored.
# AST Encoding