<?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>27995</bug_id>
          
          <creation_ts>2015-02-10 19:37:35 +0000</creation_ts>
          <short_desc>Consider adding some sort of shorthand for resolving a promise with an IDL value</short_desc>
          <delta_ts>2017-12-06 11:53:59 +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>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="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>annevk</cc>
    
    <cc>d</cc>
    
    <cc>ddorwin</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>117822</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-02-10 19:37:35 +0000</bug_when>
    <thetext>Basically just invoke http://heycam.github.io/webidl/#dfn-convert-idl-to-ecmascript-value and then resolve the promise with the result, at least in the ES binding.

Maybe it&apos;s clear enough when people resolve promises with IDL values in their algorithms that this is what&apos;s supposed to happen, of course.  Except people keep getting confused about what happens with dictionaries and sequences, since resolving with one will create a new JS object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129004</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-12-06 11:53:59 +0000</bug_when>
    <thetext>https://github.com/heycam/webidl/issues/490</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>