[Bug 20731] New: Sequence algorithm seems incorrect

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