[Bug 14746] New: Clarify what happens when you try using unsupported property indexes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14746

           Summary: Clarify what happens when you try using unsupported
                    property indexes
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: ayg@aryeh.name
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


3.3.4.3 says:

"""
The following requirements apply to the definitions of indexed property
getters, setters, creators and deleters:

* If an indexed property getter was specified using an operation with an
identifier, then the value returned when indexing the object with a given index
is the value that would be returned by invoking the operation, passing the
index as its only argument.
"""

By itself, this makes it look like this is true for *any* index.  I was
confused and thought this is what was actually intended (see bug 14743). 
However, 4.7.2 defines that if the index is not a supported property index,
nothing special happens, and regular ES behavior takes hold.

Perhaps "when indexing the object with a given index" should be changed to
"when indexing the object with a given supported property index" or something? 
Are there other places where similar changes are needed?

-- 
Configure bugmail: http://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 Wednesday, 9 November 2011 20:11:28 UTC