This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29331 - Provide text guidance for rejecting promises
Summary: Provide text guidance for rejecting promises
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-10 21:30 UTC by David Dorwin
Modified: 2015-12-10 21:30 UTC (History)
3 users (show)

See Also:


Attachments

Description David Dorwin 2015-12-10 21:30:33 UTC
https://heycam.github.io/webidl/#idl-exceptions provides guidance/examples on creating and throwing exceptions, including shorthand like "Throw an IndexSizeError." 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.