W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

[Bug 20731] New: Sequence algorithm seems incorrect

From: <bugzilla@jessica.w3.org>
Date: Tue, 22 Jan 2013 11:51:16 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20731-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20731

            Bug ID: 20731
           Summary: Sequence algorithm seems incorrect
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: w3c@marcosc.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

Reading http://dev.w3.org/2006/webapi/WebIDL/#es-sequence

Where the algorithm goes: 

"
Let n be the result of calling ToUint32(length).
Initialize S0..n−1 to be an IDL sequence with elements of type T, where each
element is uninitialized.
While i < n:
Let P be the result of calling ToString(i).
Let E be the result of calling [[Get]] on V with property name P.
"

P will just be "1", "2", "3", and so on, but not the actual property name. And
hence E will just be undefined.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 22 January 2013 11:51:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:08 UTC