tc39 / proposal-async-iteration

Asynchronous iteration for JavaScript
https://tc39.github.io/proposal-async-iteration/
MIT License
859 stars 44 forks source link

flag optional BindingIdentifier on AG Expression #96

Closed leobalter closed 7 years ago

leobalter commented 7 years ago

Fixes #95

cc @domenic, it's easier to write this patch to show the exact part I'm asking on #95.

Considering your feedback, I believe this optional flag is missing here.

ref: GeneratorExpression

domenic commented 7 years ago

Oh, I see! So without this fix async function* () {} would be syntactically invalid, right? If so, good catch! (If not, I'm still missing something...)

leobalter commented 7 years ago

So without this fix async function* () {} would be syntactically invalid, right?

yes

leobalter commented 7 years ago

Thanks!

I'm already writing a few tests including unnamed async generator expressions. I should have a (huge) PR open today or tomorrow.