<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14746</bug_id>
          
          <creation_ts>2011-11-09 20:11:19 +0000</creation_ts>
          <short_desc>Clarify what happens when you try using unsupported property indexes</short_desc>
          <delta_ts>2011-12-27 15:22:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59796</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-11-09 20:11:19 +0000</bug_when>
    <thetext>3.3.4.3 says:

&quot;&quot;&quot;
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.
&quot;&quot;&quot;

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 &quot;when indexing the object with a given index&quot; should be changed to &quot;when indexing the object with a given supported property index&quot; or something?  Are there other places where similar changes are needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61472</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-12-13 00:50:43 +0000</bug_when>
    <thetext>I think it&apos;s fair enough to want to clarify this.  I&apos;ve done as you suggested and used &quot;supported property index&quot; instead of &quot;property index&quot; for the getter, setter and deleter dot points (but not for creators, since they necessarily work with indices that aren&apos;t yet supported).  I&apos;ve also added a clarifying note/example below that list, and added a similar note and changes to the &quot;Named properties&quot; section.

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.419;r2=1.420;f=h

Please let me know if this resolution is satisfactory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62047</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-12-27 15:22:45 +0000</bug_when>
    <thetext>Looks good to me.  Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>