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

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

Re: New Promise Constructor

2013-09-11 Thread Marcos Caceres
On 11/09/2013, at 6:11 PM, Andrea Marchesini amarches...@mozilla.com 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.

Re: New Promise Constructor

2013-09-11 Thread Marcos Caceres
On 11/09/2013, at 8:18 PM, Boris Zbarsky bzbar...@mit.edu 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