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

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 07 Oct 2014 11:21:42 +0000
To: public-script-coord@w3.org
Message-ID: <bug-26517-3890-zXmXDoVtv5@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26517

--- Comment #20 from Olli Pettay <bugs@pettay.fi> ---
This inconsistency in rather horrible. 

var promise1 = object.foo(someParam);
// you should not do anything interesting here, since foo() call may even got
// wrong params. You're forced to wait for the promise to resolve/reject.

Error reporting really should happen early in certain cases, like in
param type validation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 7 October 2014 11:21:44 UTC

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