@@ -595,14 +595,14 @@ A [=/key=] has an associated <dfn>type</dfn> which is one of:
595
595
*string*,
596
596
*binary*,
597
597
or
598
- *array *.
598
+ *composite *.
599
599
600
600
A [=/key=] also has an associated <dfn>value</dfn> , which will
601
601
be either:
602
602
an {{unrestricted double}} if type is *number* or *date*,
603
603
a {{DOMString}} if type is *string*,
604
604
a [=byte sequence=] if type is *binary*,
605
- or a [=/list=] of other [=/keys=] if type is *array *.
605
+ or a [=/list=] of other [=/keys=] if type is *composite *.
606
606
607
607
</div>
608
608
@@ -627,9 +627,9 @@ following the steps to [=convert a value to a key=].
627
627
will fail.
628
628
</aside>
629
629
630
- An <dfn>array key</dfn> is a [=/key=] with [=key/type=] *array *.
631
- The <dfn>subkeys</dfn> of an [=array key=] are the [=list/items=] of the
632
- [=array key=] 's [=key/value=] .
630
+ An <dfn>composite key</dfn> is a [=/key=] with [=key/type=] *composite *.
631
+ The <dfn>subkeys</dfn> of an [=composite key=] are the [=list/items=] of the
632
+ [=composite key=] 's [=key/value=] .
633
633
634
634
<div algorithm>
635
635
@@ -641,8 +641,8 @@ To <dfn>compare two keys</dfn> |a| and |b|, run these steps:
641
641
642
642
1. If |ta| does not equal |tb|, then run these steps:
643
643
644
- 1. If |ta| is *array *, then return 1.
645
- 1. If |tb| is *array *, then return -1.
644
+ 1. If |ta| is *composite *, then return 1.
645
+ 1. If |tb| is *composite *, then return -1.
646
646
1. If |ta| is *binary*, then return 1.
647
647
1. If |tb| is *binary*, then return -1.
648
648
1. If |ta| is *string*, then return 1.
@@ -677,7 +677,7 @@ To <dfn>compare two keys</dfn> |a| and |b|, run these steps:
677
677
1. If |vb| is [=byte less than=] |va|, then return 1.
678
678
1. Return 0.
679
679
680
- : *array *
680
+ : *composite *
681
681
::
682
682
1. Let |length| be the lesser of |va|'s [=list/size=] and |vb|' s [=list/size=] .
683
683
1. Let |i| be 0.
@@ -712,9 +712,9 @@ of [=/comparing two keys=] with |a| and |b| is 0.
712
712
*Number* keys are less than *date* keys.
713
713
*Date* keys are less than *string* keys.
714
714
*String* keys are less than *binary* keys.
715
- *Binary* keys are less than *array * keys.
715
+ *Binary* keys are less than *composite * keys.
716
716
There is no highest possible [=/key=] value.
717
- This is because an array of any candidate highest [=/key=]
717
+ This is because a *composite* key of any candidate highest [=/key=]
718
718
followed by another [=/key=] is even higher.
719
719
</aside>
720
720
@@ -838,8 +838,8 @@ object store fails.
838
838
839
839
An [=/index=] has a <dfn>multiEntry flag</dfn> . This flag affects how
840
840
the index behaves when the result of evaluating the index's
841
- [=index/key path=] yields an [=array key=] . If its [=index/multiEntry flag=]
842
- is false, then a single [=object-store/record=] whose [=/key=] is an [=array key=]
841
+ [=index/key path=] yields an [=composite key=] . If its [=index/multiEntry flag=]
842
+ is false, then a single [=object-store/record=] whose [=/key=] is an [=composite key=]
843
843
is added to the index. If its [=index/multiEntry flag=] is true, then
844
844
one [=object-store/record=] is added to the index for each of the [=subkeys=] .
845
845
@@ -1582,7 +1582,7 @@ be updated.
1582
1582
1583
1583
Only specified keys of [=key/type=] *number* can affect the
1584
1584
[=key generator/current number=] of the key generator. Keys of [=key/type=]
1585
- *date*, *array * (regardless of the other keys they
1585
+ *date*, *composite * (regardless of the other keys they
1586
1586
contain), *binary*, or *string* (regardless of whether
1587
1587
they could be parsed as numbers) have no effect on the [=key generator/current
1588
1588
number=] of the key generator. Keys of [=key/type=]
@@ -5648,29 +5648,29 @@ To <dfn>store a record into an object store</dfn> with
5648
5648
</aside>
5649
5649
5650
5650
1. If |index|'s [=index/multiEntry flag=] is false, or if |index key|
5651
- is not an [=array key=] , and if |index| already contains a
5651
+ is not an [=composite key=] , and if |index| already contains a
5652
5652
[=object-store/record=] with [=/key=] [=equal to=] |index
5653
5653
key|, and |index|'s [=index/unique flag=] is true, then this
5654
5654
operation failed with a "{{ConstraintError}} " {{DOMException}} . Abort this
5655
5655
algorithm without taking any further steps.
5656
5656
5657
5657
1. If |index|'s [=index/multiEntry flag=] is true and |index key| is
5658
- an [=array key=] , and if |index| already contains a
5658
+ an [=composite key=] , and if |index| already contains a
5659
5659
[=object-store/record=] with [=/key=] [=equal to=] any of the
5660
5660
[=subkeys=] of |index key|, and |index|'s [=index/unique
5661
5661
flag=] is true, then this operation failed with a
5662
5662
"{{ConstraintError}} " {{DOMException}} . Abort this algorithm without taking any
5663
5663
further steps.
5664
5664
5665
5665
1. If |index|'s [=index/multiEntry flag=] is false, or if |index key|
5666
- is not an [=array key=] then store a record in |index|
5666
+ is not an [=composite key=] then store a record in |index|
5667
5667
containing |index key| as its key and |key| as its value. The
5668
5668
record is stored in |index|'s [=index/list of records=]
5669
5669
such that the list is sorted primarily on the records keys,
5670
5670
and secondarily on the records values, in [=ascending=] order.
5671
5671
5672
5672
1. If |index|'s [=index/multiEntry flag=] is true and |index key| is
5673
- an [=array key=] , then for each |subkey| of the
5673
+ an [=composite key=] , then for each |subkey| of the
5674
5674
[=subkeys=] of |index key| store a record in |index|
5675
5675
containing |subkey| as its key and |key| as its value. The
5676
5676
records are stored in |index|'s [=index/list of
@@ -5684,10 +5684,10 @@ To <dfn>store a record into an object store</dfn> with
5684
5684
</aside>
5685
5685
5686
5686
<aside class=note>
5687
- Even if any member of [=subkeys=] is itself an [=array key=] ,
5687
+ Even if any member of [=subkeys=] is itself an [=composite key=] ,
5688
5688
the member is used directly as the key for the index record.
5689
- Nested [=array keys=] are not flattened or "unpacked" to
5690
- produce multiple rows; only the outer-most [=array key=] is.
5689
+ Nested [=composite keys=] are not flattened or "unpacked" to
5690
+ produce multiple rows; only the outer-most [=composite key=] is.
5691
5691
</aside>
5692
5692
5693
5693
1. Return |key|.
@@ -6360,7 +6360,7 @@ The steps return an ECMAScript value.
6360
6360
in |value|.
6361
6361
1. Return |buffer|.
6362
6362
6363
- : *array *
6363
+ : *composite *
6364
6364
::
6365
6365
1. Let |array| be the result of executing the ECMAScript Array
6366
6366
constructor with no arguments.
@@ -6438,7 +6438,7 @@ steps may throw an exception.
6438
6438
1. Return a new [=/key=] with [=key/type=]
6439
6439
*binary* and [=key/value=] |bytes|.
6440
6440
6441
- <!-- Array -->
6441
+ <!-- Composite ( Array) -->
6442
6442
: If |input| is an [=ECMAScript/Array exotic object=]
6443
6443
::
6444
6444
1. Let |len| be [=ECMAScript/?=] [$ToLength$] ( [=ECMAScript/?=] [$Get$] (|input|,
@@ -6467,7 +6467,7 @@ steps may throw an exception.
6467
6467
6468
6468
1. Increase |index| by 1.
6469
6469
6470
- 1. Return a new [=array key=] with [=key/value=]
6470
+ 1. Return a new [=composite key=] with [=key/value=]
6471
6471
|keys|.
6472
6472
6473
6473
@@ -6511,7 +6511,7 @@ steps may throw an exception.
6511
6511
6512
6512
1. Increase |index| by 1.
6513
6513
6514
- 1. Return a new [=array key=] with [=key/value=] set to |keys|.
6514
+ 1. Return a new [=composite key=] with [=key/value=] set to |keys|.
6515
6515
6516
6516
1. Otherwise, return the result of [=/converting a
6517
6517
value to a key=] with argument |input|.
@@ -6525,7 +6525,7 @@ steps may throw an exception.
6525
6525
not be converted to keys are ignored, and duplicates are removed.
6526
6526
6527
6527
For example, the value `[10, 20, null, 30, 20] ` is
6528
- converted to an [=array key=] with [=subkeys=] 10, 20, 30.
6528
+ converted to an [=composite key=] with [=subkeys=] 10, 20, 30.
6529
6529
</aside>
6530
6530
6531
6531
0 commit comments