<?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>29331</bug_id>
          
          <creation_ts>2015-12-10 21:30:33 +0000</creation_ts>
          <short_desc>Provide text guidance for rejecting promises</short_desc>
          <delta_ts>2015-12-10 21:30:33 +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>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="David Dorwin">ddorwin</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <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>124417</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-12-10 21:30:33 +0000</bug_when>
    <thetext>https://heycam.github.io/webidl/#idl-exceptions provides guidance/examples on creating and throwing exceptions, including shorthand like &quot;Throw an IndexSizeError.&quot; It should include similar guidance/examples for rejecting promises.

In addition, `reject` should be defined and linkable like `throw`.

This was originally discussed in https://github.com/w3c/encrypted-media/issues/122#issuecomment-163082590. See also the reply from Domenic.

This may be related to bug 21740, though that seems outdated.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>