<?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>22357</bug_id>
          
          <creation_ts>2013-06-13 20:36:17 +0000</creation_ts>
          <short_desc>Don&apos;t special case callable &apos;then&apos;</short_desc>
          <delta_ts>2013-09-10 12:43:52 +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>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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="Olli Pettay">bugs</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89278</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2013-06-13 20:36:17 +0000</bug_when>
    <thetext>http://dom.spec.whatwg.org/#promises-model would be simpler if
&quot;If JavaScript IsCallable(then) is true, run these substeps and then terminate these steps:&quot; wasn&apos;t there, but if &apos;then&apos; isn&apos;t callable, just throw and handle that the same way what would happen if &apos;then&apos; was callable and throws an exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89298</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-06-14 06:29:08 +0000</bug_when>
    <thetext>Why would we try to invoke &apos;then&apos; if it&apos;s not callable though? It seems this design might change slightly anyway :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93201</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-09-10 12:43:52 +0000</bug_when>
    <thetext>The reason for doing [[Get]] and checking if it&apos;s callable and then [[Call]] rather than just doing [[Invoke]] is because a lot of JavaScript does it that way. We might change some of this though: https://github.com/domenic/promises-unwrapping/issues/25

In any event, this is now out of scope for DOM as the text has moved (temporarily).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>