Re: [IndexedDB] Array keys / circular references

On Tue, Nov 1, 2011 at 10:35 AM, Jonas Sicking <jonas@sicking.cc> wrote:

> On Tue, Nov 1, 2011 at 9:24 AM, Joshua Bell <jsbell@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
> array
> > is a valid key (i.e. sparse arrays can not be valid keys), and if Array
> > value is not an item in the Array itself or any other Arrays within the
> > value. (i.e. arrays with cyclic references are not valid keys)." (That
> could
> > use a sprinkling of rigor, though.)
>
> Sparse arrays are already defined as invalid keys given that they
> contain the value <undefined> which isn't a valid key.
>

Yup; my suggestion above just added a third clause to the existing sentence
about valid Arrays - the "(i.e. sparse arrays...)" bit is already in the
spec.

Received on Tuesday, 1 November 2011 17:43:48 UTC