[IndexedDB] Array keys / circular references

2011-11-01 Thread Joshua Bell
So far as I can see, Section 3.1.3 Keys doesn't seem to forbid circular references in keys which are Array objects, but this will obviously cause infinite loops in the comparison algorithm. This is in contrast to values, where the structured clone algorithm explicitly deals with cyclic references.

Re: [IndexedDB] Array keys / circular references

2011-11-01 Thread Jonas Sicking
On Tue, Nov 1, 2011 at 9:24 AM, Joshua Bell jsb...@chromium.org wrote: So far as I can see, Section 3.1.3 Keys doesn't seem to forbid circular references in keys which are Array objects, but this will obviously cause infinite loops in the comparison algorithm. This is in contrast to values,

Re: [IndexedDB] Array keys / circular references

2011-11-01 Thread Joshua Bell
On Tue, Nov 1, 2011 at 10:35 AM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Nov 1, 2011 at 9:24 AM, Joshua Bell jsb...@chromium.org wrote: I suggest an addition to the text e.g. However, an Array values is only a valid key if every item in the array is defined, if every item in the