Re: [w3c/IndexedDB] error in an example of the behavior of in-line keys and key generators (Issue #443)

inexorabletash left a comment (w3c/IndexedDB#443)

Agreed, the text and code in that example appear incorrect. 

Note that the normative spec text in the [inject a key into a value](https://www.w3.org/TR/2025/WD-IndexedDB-3-20250228/#inject-key-into-value) algorithms explicitly handle Array, so it's just that example that's wrong.

I suspect the example dates back to early prototypes of IndexedDB where values were serialized with JSON rather than structured cloning; additional properties on arrays aren't supported in JSON, but the structured cloning algorithm supports them.

So: just need a fix for the example. PRs welcome!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/443#issuecomment-2743844527
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/issues/443/2743844527@github.com>

Received on Friday, 21 March 2025 16:17:36 UTC