You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behavior of these attributes could be defined like so:
6560
+
6561
+
<blockquote>
6562
+
Each <code>PersonalPreferences</code> has associated <b>favorite colors</b>, a {{FrozenArray}}<{{DOMString}}>, initially equal to the result of [=creating a frozen array=] from « "<code>purple</code>", "<code>aquamarine</code>" ».
6563
+
6564
+
Each <code>PersonalPreferences</code> has an associated <b>favorite foods</b>, a {{FrozenArray}}<{{DOMString}}>, initially equal to the result of [=creating a frozen array=] from the empty list.
6565
+
6566
+
The <code>favoriteColors</code> [=getter steps=] are to return [=this=]'s favorite colors.
6567
+
6568
+
The <code>favoriteFoods</code> [=getter steps=] are to return [=this=]'s favorite foods.
6569
+
6570
+
The <code>favoriteFoods</code> [=setter steps=] are to set [=this=]'s favorite foods to [=the given value=].
6571
+
6572
+
The <code>randomizeFavoriteColors()</code> [=method steps=] are:
6573
+
6574
+
1. Let |newFavoriteColors| be a list of two strings representing colors, chosen randomly.
6575
+
6576
+
1. Set [=this=]'s favorite colors to the result of [=creating a frozen array=] from |newFavoriteColors|.
6577
+
</blockquote>
6578
+
</div>
6579
+
6542
6580
Since <a interface lt="FrozenArray">FrozenArray<|T|></a> values
6543
6581
are references, they are unlike [=sequence types=],
6544
6582
which are lists of values that are passed by value.
@@ -11189,11 +11227,10 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
11189
11227
there is an entry in |S| that has one of the
11190
11228
following types at position |i| of its type list,
11191
11229
* a [=sequence type=]
11192
-
* a [=frozen array type=]
11193
-
* a [=nullable type|nullable=] version of any of the above types
11194
-
* an [=annotated type=] whose [=annotated types/inner type=] is one of the above types
11230
+
* a [=nullable type|nullable=] [=sequence type=]
11231
+
* an [=annotated type=] whose [=annotated types/inner type=] is a [=sequence type=]
11195
11232
* a [=union type=], [=nullable type|nullable=] union type, or [=annotated type|annotated=] union type
11196
-
that has one of the above types in its [=flattened member types=]
11233
+
that has a [=sequence type=] in its [=flattened member types=]
11197
11234
11198
11235
and after performing the following steps,
11199
11236
@@ -11290,13 +11327,10 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
11290
11327
1. Let |V| be |args|[|i|].
11291
11328
1. Let |T| be the type at index |i| in the
11292
11329
type list of the remaining entry in |S|.
11293
-
1. If |T| is a [=sequence type=], then
11294
-
append to |values| the result of
11330
+
1. Assert: |T| is a [=sequence type=].
11331
+
1. Append to |values| the result of
11295
11332
[=creating a sequence from an iterable|creating a sequence=]
11296
11333
of type |T| from |V| and |method|.
11297
-
1. Otherwise, |T| is a [=frozen array type=].
11298
-
Append to |values| the result of
11299
-
[=Creating a frozen array from an iterable|creating a frozen array of type T from V and method=].
0 commit comments