W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

[Bug 24291] New: Add a Promise type to WebIDL, and make it not distinguishable from anything

From: <bugzilla@jessica.w3.org>
Date: Tue, 14 Jan 2014 16:25:22 +0000
To: public-script-coord@w3.org
Message-ID: <bug-24291-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24291

            Bug ID: 24291
           Summary: Add a Promise type to WebIDL, and make it not
                    distinguishable from anything
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: bzbarsky@mit.edu
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

We want to do this anyway to handle Promise return values.  Making it not
distinguishable will prevent unwanted unioning and overloading.

Conversion to the type should use the default Promise.cast, not normal
interface type detection, so it'll work with thenables and the like.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 14 January 2014 16:25:24 UTC

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