Skip to content

Commit 5a349e3

Browse files
committed
allow (binary <datastring>) value definitions
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 5098ffc commit 5a349e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

design/mvp/Explainer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,7 @@ val ::= false | true
13931393
| (enum "<label>")
13941394
| none | (some <val>)
13951395
| ok | (ok <val>) | error | (error <val>)
1396+
| (binary <core:datastring>)
13961397
f32canon ::= <core:f32> without the `nan:0x` case.
13971398
f64canon ::= <core:f64> without the `nan:0x` case.
13981399
```
@@ -1431,6 +1432,9 @@ The validation rules for `value` require the `val` to match the `valtype`. For
14311432
14321433
(value $s (enum "a" "b" "c") (enum "b"))
14331434
1435+
(value $t bool (binary "\00"))
1436+
(value $u string (binary "\07example"))
1437+
14341438
(type $complex
14351439
(tuple
14361440
(record
@@ -2105,6 +2109,7 @@ and will be added over the coming months to complete the MVP proposal:
21052109
[`core:valtype`]: https://webassembly.github.io/spec/core/text/types.html#value-types
21062110
[`core:typeuse`]: https://webassembly.github.io/spec/core/text/modules.html#type-uses
21072111
[`core:functype`]: https://webassembly.github.io/spec/core/text/types.html#function-types
2112+
[`core:datastring`]: https://webassembly.github.io/spec/core/text/modules.html#text-datastring
21082113
[func-import-abbrev]: https://webassembly.github.io/spec/core/text/modules.html#text-func-abbrev
21092114
[`core:version`]: https://webassembly.github.io/spec/core/binary/modules.html#binary-version
21102115

0 commit comments

Comments
 (0)