Thursday, June 12, 2014

Re: JSNI Javascript promises

Out of curiosity, is this library open source or is it likely to be?

On Thursday, June 12, 2014, Jens <jens.nehlmeier@gmail.com> wrote:
I have written a Promise library that uses native promises of the browser if possible and emulated promises otherwise. I had the same problem for native promises. I think it is forbidden to define a function with a name "catch" as it is a keyword however browsers have cheated on that in case of native promises.

In my case I could workaround it by using this["catch"](..) instead of this.catch(...). Maybe thats possible in your case too.


-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


--
Cheers,

Peter Donald

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment