<?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>25025</bug_id>
          
          <creation_ts>2014-03-12 21:20:42 +0000</creation_ts>
          <short_desc>Named creators with [OverrideBuiltins] don&apos;t work right as the spec is written now</short_desc>
          <delta_ts>2015-03-12 15:46:34 +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>All</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>
          <dependson>26521</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Boris Zbarsky">bzbarsky</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>102262</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-03-12 21:20:42 +0000</bug_when>
    <thetext>Consider an interface with a named creator and [OverrideBuiltins] (in fact, the only interface with a named creator in the platform has that extended attribute).

When a set happens for a currently-nonexistent, per current spec [[GetOwnProperty]] will return undefined.  Then the ES impl will go up the proto chain looking for a setter, and if found call it.

That doesn&apos;t seem correct; we actually want to call the named creator in this case.

We should probably just override [[Put]] when we have a named creator.  And maybe transition all this stuff to the ES6 MOP in the process...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118556</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-03-12 15:46:34 +0000</bug_when>
    <thetext>Fixed by https://github.com/heycam/webidl/commit/646bd2ae909117329d8db89dd20f39bba3e0a513</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>