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


--- Comment #19 from Yutaka Hirano <yhirano@google.com> ---
IMO I prefer the current spec - returning a rejected Promise rather than
throwing an error.

By the way, many APIs are currently using Promises. Chrome already returns a
rejected Promise from APIs returning a Promise when there is an error, although
the implementation is not perfect yet (see
Changing the draft will affect many APIs (we thought that part of them for
example WebCrypto were stable and "shipped" them). It would be great if we
conclude this discussion soon.

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

Received on Friday, 29 August 2014 00:51:18 UTC