W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

[Bug 22522] New: WebIDL, error handling, and promises

From: <bugzilla@jessica.w3.org>
Date: Sun, 30 Jun 2013 18:46:06 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22522-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22522

            Bug ID: 22522
           Summary: WebIDL, error handling, and promises
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: w3c@marcosc.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

When using a method that vends a promise, it's not clear to me what should
happen when WebIDL says to throw a TypeError.

The WebIDL spec should include something like: "If return type is Promise, and
an exception has been thrown, instead return a rejected promise with that
exception." 

See email thread:
http://lists.w3.org/Archives/Public/public-script-coord/2013AprJun/0772.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 30 June 2013 18:46:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:49 UTC