Re: [w3c/IndexedDB] IDBRecord getters and key conversion to value caching (Issue #494)

janvarga left a comment (w3c/IndexedDB#494)

Thanks. Briefly, the question is whether `record.key === record.primaryKey` should be true for object-store records, where both attributes hold the same underlying key. Arguments exist on both sides, aliasing reflects that the values are semantically the same and can save memory for non-primitive keys, while keeping them as separate objects matches how distinct WebIDL attributes typically behave and aligns with Chrome's current implementation. My impression is that `indexedDB.cmp` is the intended way to check whether two keys are equal, not `===`, which would suggest the aliasing isn't needed for correctness.


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

Message ID: <w3c/IndexedDB/issues/494/4421626181@github.com>

Received on Monday, 11 May 2026 14:29:30 UTC