Re: WebIDL generated TypeErrors and promises

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