RE: WebIDL generated TypeErrors and promises

From: Marcos Caceres [] 

> Ok, but this potentially breaks WebIDL… maybe kinda… I think most specs assume that WebIDL does its thing, then algorithmic prose runs.

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? ;)

Received on Friday, 28 June 2013 15:10:57 UTC