[Bug 20456] New: 4.2.24.1: wrong conversion

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20456

            Bug ID: 20456
           Summary: 4.2.24.1: wrong conversion
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: jmdyck@ibiblio.org
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

As I understand it,
given an IDL array type T[],
and a platform array object A that represents a value of that type...

When setting an element of A, [[DefineOwnProperty]] converts
the incoming ECMAScript value to IDL type T.

When fetching an element of A, [[GetOwnProperty]] *should* convert
the outgoing IDL value from IDL type T to an ECMAScript value.

However, in "4.2.24.1. Platform array object [[GetOwnProperty]] method",
step 3.3 says:
    Let value be the result of converting the indexth element of
    the IDL array that A represents to an IDL value of type T.

So I think the phrase:
    to an IDL value of type T
should be changed to:
    to an ECMAScript value
or maybe:
    from an IDL value of type T to an ECMAScript value

(Note that the word "converting" is a link to IDL-to-ECMAScript conversion,
which is correct.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Thursday, 20 December 2012 08:58:31 UTC