<?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>18878</bug_id>
          
          <creation_ts>2012-09-14 13:16:47 +0000</creation_ts>
          <short_desc>[[NativeBrand]] of &quot;Function&quot; doesn&apos;t seem to exist in current ES6 drafts</short_desc>
          <delta_ts>2016-09-08 20:59:24 +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>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>allen</cc>
    
    <cc>d</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
    
    <cc>waldron.rick</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73924</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-09-14 13:16:47 +0000</bug_when>
    <thetext>The links to ES6 in WebIDL go to &lt;http://people.mozilla.org/~jorendorff/es6-draft.html&gt;.  That says:

&quot;&quot;&quot;
The value of a [[NativeBrand]] property is a single member of this set of enumerated values: NativeFunction, NativeArray, StringWrapper, BooleanWrapper, NumberWrapper, NativeMath, NativeDate, NativeRegExp, NativeError, NativeJSON, NativeArguments, NativePrivateName.
&quot;&quot;&quot;

But this says function objects have a [[NativeBrand]] of Function, which isn&apos;t on the list:

http://dev.w3.org/2006/webapi/WebIDL/#dfn-function-object

Maybe it should be NativeFunction?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79704</commentid>
    <comment_count>1</comment_count>
    <who name="Rick Waldron">waldron.rick</who>
    <bug_when>2012-12-07 23:27:21 +0000</bug_when>
    <thetext>[[NativeBrand]] has been renamed [[BuiltinBrand]] in the latest revision of the ES6 specification draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79762</commentid>
    <comment_count>2</comment_count>
    <who name="Allen Wirfs-Brock">allen</who>
    <bug_when>2012-12-08 17:01:40 +0000</bug_when>
    <thetext>You can file bugs against the ECMAScript 6 draft. at bugs.ecmascript.com

As Rick says, [[NativeBrand]] is now called [[BuiltinBrand]] and section 15.2.4.2 lists BuiltinFunction as one of its value.

Object semantic specification details in the the ES6 draft that relate to things like this are still under going massive changes. I recommend simply waiting a few months before typing to sync to the ES6 spec. at this level.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79879</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-12-10 23:36:29 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; You can file bugs against the ECMAScript 6 draft. at bugs.ecmascript.com
&gt; 
&gt; As Rick says, [[NativeBrand]] is now called [[BuiltinBrand]] and section
&gt; 15.2.4.2 lists BuiltinFunction as one of its value.
&gt; 
&gt; Object semantic specification details in the the ES6 draft that relate to
&gt; things like this are still under going massive changes. I recommend simply
&gt; waiting a few months before typing to sync to the ES6 spec. at this level.

OK, thanks for the info Rick and Allen.  If you could ping me Allen when this stuff is most stable I&apos;ll rework Web IDL then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127349</commentid>
    <comment_count>4</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2016-09-08 20:59:24 +0000</bug_when>
    <thetext>[[NativeBrand]] no longer appears in Web IDL, so I guess this has been fixed. I suspect that it&apos;s related to the class string/@@toStringTag stuff? Which is reasonable, although there&apos;s still the contentious https://www.w3.org/Bugs/Public/show_bug.cgi?id=28244 open.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>