You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For cases where the key is not a primitive type (arrays, ...) it could be nice to state in the spec that the IDBRecord getters shall return the same JS object. i.e. be aliased.
Our the implementation side, even if data can be optimized to share underlying data in some cases, it would be even more efficient to not create a different JS object at all: this would save processing time and memory.
The observable effect is: record.key === record.primaryKey would return true, while it returns false currently.
Yeah, I think if we do the aliasing, IDBCursor would probably need to have that too for consistency, but since IDBCursor is a long existing interface it could potentially cause regressions.
Activity
janvarga commentedon May 21, 2026
Yeah, I think if we do the aliasing,
IDBCursorwould probably need to have that too for consistency, but sinceIDBCursoris a long existing interface it could potentially cause regressions.