Proposal to add keyword "nowait"
agat00 at gmail.com
Mon Feb 12 11:48:54 UTC 2018
I think it should not be hard to implement at least for explicitely async
functions. Of course it will miss non-async that return promises. But you
can mark them as async. For example we are doing on each function that
could return promise even if it doesn't use await. But even without it that
should hit most of missed await errors
2018-02-12 13:34 GMT+02:00 Александр Ефремов <mr.efrem at gmail.com>:
> I’m not sure that it will be simply to implement. Because not all possible
> to analyze without execution. I offer to use `nowait` there where calls
> will return promise, but it i’m not sure that promises always can detect
> just via parsing of source code.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss