- From: stelar7 <notifications@github.com>
- Date: Tue, 29 Apr 2025 09:14:47 -0700
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/IndexedDB/issues/451@github.com>
stelar7 created an issue (w3c/IndexedDB#451) In [iterate a cursor](https://w3c.github.io/IndexedDB/#iterate-a-cursor), a record's value is compared to a Key. (emphasis mine) * If primaryKey is defined, the record’s key is equal to key and the **record’s value is greater than or equal to primaryKey**, or the record’s key is greater than key. According to [§2.3 Values](https://w3c.github.io/IndexedDB/#value-construct): `Record values are Records output by the StructuredSerializeForStorage operation.` `StructuredSerializeForStorage` calls into `StructuredSerializeInternal`, which says: The [StructuredSerializeInternal](https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal) abstract operation takes as input a JavaScript value value and serializes it to a [realm](https://tc39.es/ecma262/#sec-code-realms)-independent form, represented here as a [Record](https://tc39.es/ecma262/#sec-list-and-record-specification-type). So a record's value in this case is what exactly? * [convert a value to a key](https://w3c.github.io/IndexedDB/#convert-a-value-to-a-key) run on the Record that is created by that algorithm? * Something else? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/IndexedDB/issues/451 You are receiving this because you are subscribed to this thread. Message ID: <w3c/IndexedDB/issues/451@github.com>
Received on Tuesday, 29 April 2025 16:14:51 UTC