|
1455 | 1455 | <div class="head">
|
1456 | 1456 | <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>
|
1457 | 1457 | <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> |
1459 | 1459 | <div data-fill-with="spec-metadata">
|
1460 | 1460 | <dl>
|
1461 | 1461 | <dt>This version:
|
@@ -2626,7 +2626,7 @@ <h3 class="heading settled" data-level="2.11" id="key-generator-construct"><span
|
2626 | 2626 | for records inserted into an object store if not otherwise specified.</p>
|
2627 | 2627 | <div>
|
2628 | 2628 | <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 |
2630 | 2630 | 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
|
2631 | 2631 | 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,
|
2632 | 2632 | 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
|
2702 | 2702 | 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>
|
2703 | 2703 | </aside>
|
2704 | 2704 | <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 |
2706 | 2706 | key generator to generate a new <a data-link-type="dfn" href="#key" id="ref-for-key-39">key</a> will result in a
|
2707 | 2707 | "<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> |
2710 | 2710 | <aside class="note">
|
2711 | 2711 | This limit arises because integers greater than 9007199254740992
|
2712 | 2712 | 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