W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

Re: WebIDL generated TypeErrors and promises

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 28 Jun 2013 22:10:10 -0400
Message-ID: <51CE4202.50009@mit.edu>
To: public-script-coord@w3.org
On 6/28/13 11:10 AM, Domenic Denicola wrote:
> I mean, presumably WebIDL can be made to incorporate this automatically. Add a step at the end with "If return type is Promise, and an exception has been thrown, instead return a rejected promise with that exception." WebIDL is meant to serve us, not constrain us, right? ;)

Right, that would be the way to do it if we want to do it.

-Boris
Received on Saturday, 29 June 2013 02:10:39 UTC

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