WebIDL generated TypeErrors and promises

Hi,   
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?
fooInstance.bar(123).then(yay,boo);  



--  
Marcos Caceres

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