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

WebIDL generated TypeErrors and promises

From: Marcos Caceres <w3c@marcosc.com>
Date: Fri, 28 Jun 2013 15:44:27 +0100
To: public-script-coord <public-script-coord@w3.org>
Message-ID: <F87831103A394BE599D02AB3B45AD7B7@marcosc.com>
I'm sure this has been discussed, so apologies in advanced for not finding the right thread…  

When using a method that vends a promise, it's not clear to me what should happen when WebIDL says to throw a TypeError.  

Like, given:

interface Foo{
Promise bar(object obj);  

//Does this throw a TypeError
//or is boo called with the TypeError?

Marcos Caceres
Received on Friday, 28 June 2013 14:44:56 UTC

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