Re: [w3c/IndexedDB] Correct record value serialization in cursor iteration (PR #453)

@inexorabletash commented on this pull request.



> @@ -6019,7 +6019,7 @@ To <dfn>iterate a cursor</dfn> with |targetRealm|, |cursor|, an optional
 
 1. If |cursor|'s [=cursor/key only flag=] is false, then:
 
-    1. Let |serialized| be |found record|'s [=index/referenced value=].
+    1. Let |serialized| be |found record|'s [=/value=] if |source| is an [=/object store=], or |found record|'s [=index/referenced value=] otherwise.

* If no record is found, then the cursor hits end of range. (current step 9.2)
* If a record is found, then it definitely has a value or referenced value (or the implementation has a bug) 
* Right now the steps assert that Structured federalize can never fail. See https://github.com/w3c/IndexedDB/issues/391 for potential concerns (so this is tracked elsewhere)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/pull/453#discussion_r2070755260
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/pull/453/review/2810639168@github.com>

Received on Thursday, 1 May 2025 20:19:49 UTC