W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[Bug 20456] New: wrong conversion

From: <bugzilla@jessica.w3.org>
Date: Thu, 20 Dec 2012 08:58:29 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20456-3890@http.www.w3.org/Bugs/Public/>

            Bug ID: 20456
           Summary: 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 " 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:08 UTC