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

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