<?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>28602</bug_id>
          
          <creation_ts>2015-05-04 21:44:13 +0000</creation_ts>
          <short_desc>Add additional restrictions for constants?</short_desc>
          <delta_ts>2015-07-07 06:19:21 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="Travis Leithead [MSFT]">travil</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>annevk</cc>
    
    <cc>d</cc>
    
    <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>120065</commentid>
    <comment_count>0</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2015-05-04 21:44:13 +0000</bug_when>
    <thetext>For constants, the spec calls out that the &apos;prototype&apos; name is reserved:

&gt;&gt; The identifier of a constant MUST NOT be the same as the identifier of another interface member defined on the same interface. The identifier also MUST NOT be “prototype”. 

Should we add exceptions for various other instance-level built-in names for things on Function, e.g.,:
* name
* length
?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120070</commentid>
    <comment_count>1</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2015-05-05 05:50:25 +0000</bug_when>
    <thetext>Seems reasonable, although in general we shouldn&apos;t be defining new constants anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120071</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-05-05 06:02:29 +0000</bug_when>
    <thetext>Yeah, constant needs to be legacyconstant...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121838</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2015-07-07 06:19:21 +0000</bug_when>
    <thetext>https://github.com/heycam/webidl/commit/bfe6a2607aa8f49d02dea8b163db79342d37018d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>