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


            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

See email thread:

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