@@ -618,14 +618,14 @@ A [=/key=] has an associated <dfn>type</dfn> which is one of:
618
618
*string*,
619
619
*binary*,
620
620
or
621
- *array *.
621
+ *composite *.
622
622
623
623
A [=/key=] also has an associated <dfn>value</dfn> , which will
624
624
be either:
625
625
an {{unrestricted double}} if type is *number* or *date*,
626
626
a {{DOMString}} if type is *string*,
627
627
a [=byte sequence=] if type is *binary*,
628
- or a [=/list=] of other [=/keys=] if type is *array *.
628
+ or a [=/list=] of other [=/keys=] if type is *composite *.
629
629
630
630
</div>
631
631
@@ -650,9 +650,9 @@ following the steps to [=convert a value to a key=].
650
650
will fail.
651
651
</aside>
652
652
653
- An <dfn>array key</dfn> is a [=/key=] with [=key/type=] *array *.
654
- The <dfn>subkeys</dfn> of an [=array key=] are the [=list/items=] of the
655
- [=array key=] 's [=key/value=] .
653
+ An <dfn>composite key</dfn> is a [=/key=] with [=key/type=] *composite *.
654
+ The <dfn>subkeys</dfn> of an [=composite key=] are the [=list/items=] of the
655
+ [=composite key=] 's [=key/value=] .
656
656
657
657
<div algorithm>
658
658
@@ -664,8 +664,8 @@ To <dfn>compare two keys</dfn> |a| and |b|, run these steps:
664
664
665
665
1. If |ta| does not equal |tb|, then run these steps:
666
666
667
- 1. If |ta| is *array *, then return 1.
668
- 1. If |tb| is *array *, then return -1.
667
+ 1. If |ta| is *composite *, then return 1.
668
+ 1. If |tb| is *composite *, then return -1.
669
669
1. If |ta| is *binary*, then return 1.
670
670
1. If |tb| is *binary*, then return -1.
671
671
1. If |ta| is *string*, then return 1.
@@ -700,7 +700,7 @@ To <dfn>compare two keys</dfn> |a| and |b|, run these steps:
700
700
1. If |vb| is [=byte less than=] |va|, then return 1.
701
701
1. Return 0.
702
702
703
- : *array *
703
+ : *composite *
704
704
::
705
705
1. Let |length| be the lesser of |va|'s [=list/size=] and |vb|' s [=list/size=] .
706
706
1. Let |i| be 0.
@@ -735,9 +735,9 @@ of [=/comparing two keys=] with |a| and |b| is 0.
735
735
*Number* keys are less than *date* keys.
736
736
*Date* keys are less than *string* keys.
737
737
*String* keys are less than *binary* keys.
738
- *Binary* keys are less than *array * keys.
738
+ *Binary* keys are less than *composite * keys.
739
739
There is no highest possible [=/key=] value.
740
- This is because an array of any candidate highest [=/key=]
740
+ This is because a *composite* key of any candidate highest [=/key=]
741
741
followed by another [=/key=] is even higher.
742
742
</aside>
743
743
@@ -861,8 +861,8 @@ object store fails.
861
861
862
862
An [=/index=] has a <dfn>multiEntry flag</dfn> . This flag affects how
863
863
the index behaves when the result of evaluating the index's
864
- [=index/key path=] yields an [=array key=] . If its [=index/multiEntry flag=]
865
- is false, then a single [=object-store/record=] whose [=/key=] is an [=array key=]
864
+ [=index/key path=] yields an [=composite key=] . If its [=index/multiEntry flag=]
865
+ is false, then a single [=object-store/record=] whose [=/key=] is an [=composite key=]
866
866
is added to the index. If its [=index/multiEntry flag=] is true, then
867
867
one [=object-store/record=] is added to the index for each of the [=subkeys=] .
868
868
@@ -1605,7 +1605,7 @@ be updated.
1605
1605
1606
1606
Only specified keys of [=key/type=] *number* can affect the
1607
1607
[=key generator/current number=] of the key generator. Keys of [=key/type=]
1608
- *date*, *array * (regardless of the other keys they
1608
+ *date*, *composite * (regardless of the other keys they
1609
1609
contain), *binary*, or *string* (regardless of whether
1610
1610
they could be parsed as numbers) have no effect on the [=key generator/current
1611
1611
number=] of the key generator. Keys of [=key/type=]
@@ -5672,29 +5672,29 @@ To <dfn>store a record into an object store</dfn> with
5672
5672
</aside>
5673
5673
5674
5674
1. If |index|'s [=index/multiEntry flag=] is false, or if |index key|
5675
- is not an [=array key=] , and if |index| already contains a
5675
+ is not an [=composite key=] , and if |index| already contains a
5676
5676
[=object-store/record=] with [=/key=] [=equal to=] |index
5677
5677
key|, and |index|'s [=index/unique flag=] is true, then this
5678
5678
operation failed with a "{{ConstraintError}} " {{DOMException}} . Abort this
5679
5679
algorithm without taking any further steps.
5680
5680
5681
5681
1. If |index|'s [=index/multiEntry flag=] is true and |index key| is
5682
- an [=array key=] , and if |index| already contains a
5682
+ an [=composite key=] , and if |index| already contains a
5683
5683
[=object-store/record=] with [=/key=] [=equal to=] any of the
5684
5684
[=subkeys=] of |index key|, and |index|'s [=index/unique
5685
5685
flag=] is true, then this operation failed with a
5686
5686
"{{ConstraintError}} " {{DOMException}} . Abort this algorithm without taking any
5687
5687
further steps.
5688
5688
5689
5689
1. If |index|'s [=index/multiEntry flag=] is false, or if |index key|
5690
- is not an [=array key=] then store a record in |index|
5690
+ is not an [=composite key=] then store a record in |index|
5691
5691
containing |index key| as its key and |key| as its value. The
5692
5692
record is stored in |index|'s [=index/list of records=]
5693
5693
such that the list is sorted primarily on the records keys,
5694
5694
and secondarily on the records values, in [=ascending=] order.
5695
5695
5696
5696
1. If |index|'s [=index/multiEntry flag=] is true and |index key| is
5697
- an [=array key=] , then for each |subkey| of the
5697
+ an [=composite key=] , then for each |subkey| of the
5698
5698
[=subkeys=] of |index key| store a record in |index|
5699
5699
containing |subkey| as its key and |key| as its value. The
5700
5700
records are stored in |index|'s [=index/list of
@@ -5708,10 +5708,10 @@ To <dfn>store a record into an object store</dfn> with
5708
5708
</aside>
5709
5709
5710
5710
<aside class=note>
5711
- Even if any member of [=subkeys=] is itself an [=array key=] ,
5711
+ Even if any member of [=subkeys=] is itself an [=composite key=] ,
5712
5712
the member is used directly as the key for the index record.
5713
- Nested [=array keys=] are not flattened or "unpacked" to
5714
- produce multiple rows; only the outer-most [=array key=] is.
5713
+ Nested [=composite keys=] are not flattened or "unpacked" to
5714
+ produce multiple rows; only the outer-most [=composite key=] is.
5715
5715
</aside>
5716
5716
5717
5717
1. Return |key|.
@@ -6384,7 +6384,7 @@ The steps return an ECMAScript value.
6384
6384
in |value|.
6385
6385
1. Return |buffer|.
6386
6386
6387
- : *array *
6387
+ : *composite *
6388
6388
::
6389
6389
1. Let |array| be the result of executing the ECMAScript Array
6390
6390
constructor with no arguments.
@@ -6462,7 +6462,7 @@ steps may throw an exception.
6462
6462
1. Return a new [=/key=] with [=key/type=]
6463
6463
*binary* and [=key/value=] |bytes|.
6464
6464
6465
- <!-- Array -->
6465
+ <!-- Composite ( Array) -->
6466
6466
: If |input| is an [=/Array exotic object=]
6467
6467
::
6468
6468
1. Let |len| be [=?=] [=ToLength=] ( [=?=] [=Get=] (|input|,
@@ -6491,7 +6491,7 @@ steps may throw an exception.
6491
6491
6492
6492
1. Increase |index| by 1.
6493
6493
6494
- 1. Return a new [=array key=] with [=key/value=]
6494
+ 1. Return a new [=composite key=] with [=key/value=]
6495
6495
|keys|.
6496
6496
6497
6497
@@ -6535,7 +6535,7 @@ steps may throw an exception.
6535
6535
6536
6536
1. Increase |index| by 1.
6537
6537
6538
- 1. Return a new [=array key=] with [=key/value=] set to |keys|.
6538
+ 1. Return a new [=composite key=] with [=key/value=] set to |keys|.
6539
6539
6540
6540
1. Otherwise, return the result of [=/converting a
6541
6541
value to a key=] with argument |input|.
@@ -6549,7 +6549,7 @@ steps may throw an exception.
6549
6549
not be converted to keys are ignored, and duplicates are removed.
6550
6550
6551
6551
For example, the value `[10, 20, null, 30, 20] ` is
6552
- converted to an [=array key=] with [=subkeys=] 10, 20, 30.
6552
+ converted to an [=composite key=] with [=subkeys=] 10, 20, 30.
6553
6553
</aside>
6554
6554
6555
6555
0 commit comments