Promise sub-class: super((resolve, reject) => this) ?

Matthew Robb matthewwrobb at
Tue Jun 2 22:35:40 UTC 2015

I was trying to demonstrate a simple method of exposing resolve and reject
functions to someone and noticed in Babel at least you cannot do this. It
seems as though in this case when the arrow function is called it will have
been AFTER the call to super.

Can someone help me understand what's going on here?

- Matthew Robb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list