Allow for async/await to use global.Promise and not builtin Promise

Michał Wadas michalwadas at gmail.com
Mon Jun 8 17:02:37 UTC 2020


As workaround, you can use Babel to transpile only async-await. That code
can be made to use any implementation of Promise that you want.

On Wed, May 6, 2020 at 8:37 AM medikoo <medikoo+mozilla.org at medikoo.com>
wrote:

> Jordan Harband wrote
> > Anything "more efficient" would likely not be spec compliant
>
> Promises (also those specified in ES) are quite opinionated, and I believe
> we should have right to practice our own opinions in our own apps.
>
> On these grounds thenable objects (so not necessarily promise instances)
> are
> supported, and work seamlessly in promise chains.
>
> Unfortunately async/await breaks that support, it'll be great if we can
> recover from that.
>
>
>
> --
> Sent from:
> http://mozilla.6506.n7.nabble.com/Mozilla-ECMAScript-4-discussion-f89340.html
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20200608/31b0a950/attachment.html>


More information about the es-discuss mailing list