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

[Bug 25048] consider whether an IDL attribute of type Promise<T> should catch exceptions and wrap them up as a rejected Promise like they are for operations

From: <bugzilla@jessica.w3.org>
Date: Fri, 14 Mar 2014 02:27:40 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25048-3890-w2cMkB7DOH@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25048

--- Comment #4 from Boris Zbarsky <bzbarsky@mit.edu> ---
The question is whether there are ever use cases in which a promise attribute
is is actually representing asynchronous API.

Or to put this another way: are there any use cases for allowing attributes of
Promise type at all?

> how exception-prone are the operations performed by getters, usually?

It depends on the getter.  The most common practical source of exceptions is if
you .call() the getter function on a wrong kind of object.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 14 March 2014 02:27:42 UTC

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