W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

[Bug 15864] New: [IndexedDB] Array as key, avoid array loops

From: <bugzilla@jessica.w3.org>
Date: Fri, 03 Feb 2012 12:39:07 +0000
To: public-webapps@w3.org
Message-ID: <bug-15864-2927@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15864

           Summary: [IndexedDB] Array as key, avoid array loops
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Indexed Database API
        AssignedTo: dave.null@w3.org
        ReportedBy: odinho@opera.com
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


> Note that Arrays that contain other Arrays are allowed as valid keys.
> In this case the algorithm above runs recursively when comparing the
> individual values in the arrays.
http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#key-construct

Using an array embedding itself makes a loop, the spec doesn't clarify how to
deal with that.

var a = [];
a[0] = a;

I guess you wouldn't want to /recurse/ two of those to find which is biggest
;-)

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 3 February 2012 12:39:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT