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

RE: WebIDL generated TypeErrors and promises

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Fri, 28 Jun 2013 15:10:20 +0000
To: Marcos Caceres <w3c@marcosc.com>
CC: public-script-coord <public-script-coord@w3.org>
Message-ID: <B4AE8F4E86E26C47AC407D49872F6F9F8781DCC4@BY2PRD0510MB354.namprd05.prod.outlook.com>
From: Marcos Caceres [mailto:w3c@marcosc.com] 

> 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

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