[Bug 26517] Methods that return promises are unable to throw exceptions

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26517

--- Comment #12 from Boris Zbarsky <bzbarsky@mit.edu> ---
>   typedef (Promise<Foo> or Whatever) PromiseFoo;
>   PromiseFoo bar();

I think Web IDL should disallow this, just like it disallows having overloads
some of which return a Promise and some of which do not; there are no sane
non-hacky use cases I can think of for it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 6 August 2014 03:56:58 UTC