Skip to content

Commit f8b1bf1

Browse files
rvolosatovslukewagner
authored andcommitted
allow (binary <datastring>) value definitions
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 88157cb commit f8b1bf1

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
@@ -1386,6 +1386,7 @@ val ::= false | true
13861386
| (enum "<label>")
13871387
| none | (some <val>)
13881388
| ok | (ok <val>) | error | (error <val>)
1389+
| (binary <core:datastring>)
13891390
f32canon ::= <core:f32> without the `nan:0x` case.
13901391
f64canon ::= <core:f64> without the `nan:0x` case.
13911392
```
@@ -1424,6 +1425,9 @@ The validation rules for `value` require the `val` to match the `valtype`. For
14241425
14251426
(value $s (enum "a" "b" "c") (enum "b"))
14261427
1428+
(value $t bool (binary "\00"))
1429+
(value $u string (binary "\07example"))
1430+
14271431
(type $complex
14281432
(tuple
14291433
(record
@@ -2098,6 +2102,7 @@ and will be added over the coming months to complete the MVP proposal:
20982102
[`core:valtype`]: https://webassembly.github.io/spec/core/text/types.html#value-types
20992103
[`core:typeuse`]: https://webassembly.github.io/spec/core/text/modules.html#type-uses
21002104
[`core:functype`]: https://webassembly.github.io/spec/core/text/types.html#function-types
2105+
[`core:datastring`]: https://webassembly.github.io/spec/core/text/modules.html#text-datastring
21012106
[func-import-abbrev]: https://webassembly.github.io/spec/core/text/modules.html#text-func-abbrev
21022107
[`core:version`]: https://webassembly.github.io/spec/core/binary/modules.html#binary-version
21032108

0 commit comments

Comments
 (0)