Allow for async/await to use global.Promise and not builtin Promise
ljharb at gmail.com
Wed May 6 06:43:44 UTC 2020
You already do have that right; you can use any Promise implementation you
choose, or none at all. You do *not*, however, typically have the "right"
to alter what syntax does, and `async`/`await` explicitly chose that
On Tue, May 5, 2020 at 11:37 PM medikoo <medikoo+mozilla.org at medikoo.com>
> 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)
> 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:
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss