[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

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