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 24813 - Decide whether methods should return DOMError or null on failure
Summary: Decide whether methods should return DOMError or null on failure
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Mark Watson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 21:04 UTC by Mark Watson
Modified: 2014-03-07 00:28 UTC (History)
0 users

See Also:


Attachments

Description Mark Watson 2014-02-25 21:04:41 UTC
The specification includes the following editors' note for each operation:

"Determine whether to reject the algorithm with a DOMError or a null result."

Presently the specification says to return null.
Comment 1 Mark Watson 2014-03-07 00:28:33 UTC
Changeset 64993be45f9f

We will reject the Promise with an appropriate DOMException. This change defines the language "return an error named X" to return a DOMException as specified in WebIDL. Each method includes a step that catches any such returned error and calls the reject method on the Promise.