W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: [IndexedDB] Array keys / circular references

From: Joshua Bell <jsbell@chromium.org>
Date: Tue, 1 Nov 2011 10:43:14 -0700
Message-ID: <CAD649j6bKFaLQ9kpHzCCXLnarkCCd4NYP+Z6sGMRZuKJjYh=dA@mail.gmail.com>
To: public-webapps@w3.org
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
Received on Tuesday, 1 November 2011 17:43:48 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:36 UTC