diff --git a/lang/spec.html b/lang/spec.html index 158fafc6..023685a1 100644 --- a/lang/spec.html +++ b/lang/spec.html @@ -1534,6 +1534,12 @@
+If an individual-field-descriptor
specifies readonly
,
+then there is also a constraint that the field has its read-only bit set.
+Furthermore, the type of the field is the intersection of readonly
+and the type specified by the type-descriptor.
+
The order of the individual-field-descriptor
s within a
record-type-descriptor
is not significant. Note that the delimited
identifier syntax allows the field name to be any non-empty string.
@@ -1567,6 +1573,12 @@
+If a record type descriptor is closed and every individual-type-descriptor
+specifies readonly
, then it describes a type that is a subtype of
+readonly
: a shape belongs to the type only if its read-only bit is
+set.
+
A default-value
specifies a default value for the field, which is
used when the record type descriptor is used to construct a mapping value but no
value is specified explicitly for the field. The type descriptor contains a