Re: New Promise Constructor

2013-09-11 Thread Marcos Caceres
On 11/09/2013, at 8:18 PM, Boris Zbarsky wrote: > On 9/11/13 2:13 PM, Marcos Caceres wrote: >>> callback PromiseInit = void (object resolve, object reject); >>> [Constructor(PromiseInit init)] >>> interface Promise {...} >> >> What members does PromiseInit dictionary have? ^_^ > > It's not a

Re: New Promise Constructor

2013-09-11 Thread Marcos Caceres
On 11/09/2013, at 6:11 PM, Andrea Marchesini wrote: > Hi all, > > I just want to inform that I'm landing a patch that changes the DOM Promise > constructor. > DOM Promise is disabled by pref but I know that there are a few existing > pieces of code that already use them. > > The old constru

Re: New Promise Constructor

2013-09-11 Thread Boris Zbarsky
On 9/11/13 2:13 PM, Marcos Caceres wrote: callback PromiseInit = void (object resolve, object reject); [Constructor(PromiseInit init)] interface Promise {...} What members does PromiseInit dictionary have? ^_^ It's not a dictionary. It's a callback, like the IDL snippet above says. So you'

New Promise Constructor

2013-09-11 Thread Andrea Marchesini
Hi all, I just want to inform that I'm landing a patch that changes the DOM Promise constructor. DOM Promise is disabled by pref but I know that there are a few existing pieces of code that already use them. The old constructor was based the PromiseResolver object. Now we get rid of this object