Skip to content

Commit 2350fd3

Browse files
Refine prose about limits
1 parent e1949da commit 2350fd3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ for records inserted into an object store if not otherwise specified.
14781478

14791479
A [=key generator=] has a <dfn>current number</dfn>. The
14801480
[=key generator/current number=] is always a positive integer less
1481-
than or equal to 2<sup>53</sup> (9007199254740992). The initial value
1481+
than or equal to 2<sup>53</sup> (9007199254740992) + 1. The initial value
14821482
of a [=key generator=]'s [=key generator/current number=] is 1, set
14831483
when the associated [=/object store=] is created. The
14841484
[=key generator/current number=] is incremented as keys are generated,
@@ -1577,12 +1577,12 @@ be updated.
15771577
</aside>
15781578

15791579
When the [=key generator/current number=] of a key generator reaches above the
1580-
value 2<sup>53</sup> (9007199254740992) any attempts to use the
1580+
value 2<sup>53</sup> (9007199254740992) any subsequent attempts to use the
15811581
key generator to generate a new [=/key=] will result in a
15821582
"{{ConstraintError}}" {{DOMException}}. It is still possible to insert
15831583
[=object-store/records=] into the object store by specifying an explicit
1584-
key, however the only way to use a key generator again for the
1585-
object store is to delete the object store and create a new one.
1584+
key, however the only way to use a key generator again for such records
1585+
is to delete the object store and create a new one.
15861586

15871587
<aside class=note>
15881588
This limit arises because integers greater than 9007199254740992

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@
14551455
<div class="head">
14561456
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
14571457
<h1 class="p-name no-ref" id="title">Indexed Database API 2.0</h1>
1458-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-03-06">6 March 2017</time></span></h2>
1458+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-03-07">7 March 2017</time></span></h2>
14591459
<div data-fill-with="spec-metadata">
14601460
<dl>
14611461
<dt>This version:
@@ -2626,7 +2626,7 @@ <h3 class="heading settled" data-level="2.11" id="key-generator-construct"><span
26262626
for records inserted into an object store if not otherwise specified.</p>
26272627
<div>
26282628
<p>A <a data-link-type="dfn" href="#key-generator" id="ref-for-key-generator-3">key generator</a> has a <dfn class="dfn-paneled" data-dfn-for="key generator" data-dfn-type="dfn" data-noexport="" id="key-generator-current-number">current number</dfn>. The <a data-link-type="dfn" href="#key-generator-current-number" id="ref-for-key-generator-current-number-1">current number</a> is always a positive integer less
2629-
than or equal to 2<sup>53</sup> (9007199254740992). The initial value
2629+
than or equal to 2<sup>53</sup> (9007199254740992) + 1. The initial value
26302630
of a <a data-link-type="dfn" href="#key-generator" id="ref-for-key-generator-4">key generator</a>'s <a data-link-type="dfn" href="#key-generator-current-number" id="ref-for-key-generator-current-number-2">current number</a> is 1, set
26312631
when the associated <a data-link-type="dfn" href="#object-store" id="ref-for-object-store-40">object store</a> is created. The <a data-link-type="dfn" href="#key-generator-current-number" id="ref-for-key-generator-current-number-3">current number</a> is incremented as keys are generated,
26322632
and may be updated to a specific value by using explicit keys.</p>
@@ -2702,11 +2702,11 @@ <h3 class="heading settled" data-level="2.11" id="key-generator-construct"><span
27022702
number</a> of the key generator. Keys of <a data-link-type="dfn" href="#key-type" id="ref-for-key-type-7">type</a> <i>number</i> with <a data-link-type="dfn" href="#key-value" id="ref-for-key-value-5">value</a> less than 1 do not affect the <a data-link-type="dfn" href="#key-generator-current-number" id="ref-for-key-generator-current-number-16">current number</a> since they are always lower than the <a data-link-type="dfn" href="#key-generator-current-number" id="ref-for-key-generator-current-number-17">current number</a>.</p>
27032703
</aside>
27042704
<p>When the <a data-link-type="dfn" href="#key-generator-current-number" id="ref-for-key-generator-current-number-18">current number</a> of a key generator reaches above the
2705-
value 2<sup>53</sup> (9007199254740992) any attempts to use the
2705+
value 2<sup>53</sup> (9007199254740992) any subsequent attempts to use the
27062706
key generator to generate a new <a data-link-type="dfn" href="#key" id="ref-for-key-39">key</a> will result in a
27072707
"<code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#constrainterror">ConstraintError</a></code>" <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#dfn-DOMException">DOMException</a></code>. It is still possible to insert <a data-link-type="dfn" href="#object-store-record" id="ref-for-object-store-record-24">records</a> into the object store by specifying an explicit
2708-
key, however the only way to use a key generator again for the
2709-
object store is to delete the object store and create a new one.</p>
2708+
key, however the only way to use a key generator again for such records
2709+
is to delete the object store and create a new one.</p>
27102710
<aside class="note">
27112711
This limit arises because integers greater than 9007199254740992
27122712
cannot be uniquely represented as ECMAScript <a data-link-type="dfn" href="https://tc39.github.io/ecma262/#sec-terms-and-definitions-number-type">Numbers</a>.

0 commit comments

Comments
 (0)