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

[Bug 27995] New: Consider adding some sort of shorthand for resolving a promise with an IDL value

From: <bugzilla@jessica.w3.org>
Date: Tue, 10 Feb 2015 19:37:35 +0000
To: public-script-coord@w3.org
Message-ID: <bug-27995-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27995

            Bug ID: 27995
           Summary: Consider adding some sort of shorthand for resolving a
                    promise with an IDL value
           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: d@domenic.me, mike@w3.org, public-script-coord@w3.org

Basically just invoke
http://heycam.github.io/webidl/#dfn-convert-idl-to-ecmascript-value and then
resolve the promise with the result, at least in the ES binding.

Maybe it's clear enough when people resolve promises with IDL values in their
algorithms that this is what's supposed to happen, of course.  Except people
keep getting confused about what happens with dictionaries and sequences, since
resolving with one will create a new JS object.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 10 February 2015 19:37:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 10 February 2015 19:37:38 UTC