@@ -44,9 +44,9 @@ type ::=
44
44
functype ::= rt_1:resulttype rt_2:resulttype -> rt_1 -> rt-2
45
45
46
46
moduletype ::=
47
- i*:vec(import) e*:vec(exporttype) -> {imports i, exports e}
47
+ i*:vec(import) e*:vec(exporttype) -> {imports i* , exports e* }
48
48
49
- instancetype ::= e*:vec(exporttype) -> {exports e}
49
+ instancetype ::= e*:vec(exporttype) -> {exports e* }
50
50
51
51
exporttype ::= nm:name d:importdesc -> {name nm, desc d}
52
52
```
@@ -70,12 +70,12 @@ Updates to
70
70
[ ` importdesc ` ] ( https://webassembly.github.io/spec/core/binary/modules.html#binary-importdesc )
71
71
72
72
```
73
- # note that `0x01 0xc0` in MVP- wasm specifies a 1-byte module field of the
74
- # string 0xc0, but the 0xc0 byte is not valid utf-8 , so this was not a valid
75
- # MVP import
73
+ # note that in MVP wasm this encoding specifies a zero-length field name, but
74
+ # the following `0xff` byte is not a valid `importdesc` prefix , so this encoding
75
+ # is invalid in MVP wasm
76
76
import ::=
77
77
...
78
- mod:name 0x01 0xc0 d:importdesc -> {module mod, desc d}
78
+ mod:name 0x00 0xff d:importdesc -> {module mod, desc d}
79
79
80
80
importdesc ::=
81
81
...
@@ -110,7 +110,7 @@ A new section defining local instances
110
110
```
111
111
instancesec ::= i*:section_101(vec(instancedef)) -> i*
112
112
113
- instancedef ::= 0x00 m:moduleidx e*:vec(exportdesc) -> {instantiate m, imports e}
113
+ instancedef ::= 0x00 m:moduleidx e*:vec(exportdesc) -> {instantiate m, imports e* }
114
114
```
115
115
116
116
This defines instances in the module, appending to the instance index space.
0 commit comments