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

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 05 Aug 2014 09:06:30 +0000
To: public-script-coord@w3.org
Message-ID: <bug-26517-3890-s90eJQCLNt@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26517

Olli Pettay <bugs@pettay.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugs@pettay.fi

--- Comment #5 from Olli Pettay <bugs@pettay.fi> ---
The platform effectively has this behavior in non-Promise cases, like
XHR.send().
Success is reported via load event, some errors via error via and in some
cases the method throws.

And, throwing early when the state of the object is wrong sounds right to me.
Requiring to use reject for that is overkill.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 5 August 2014 09:06:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC