Open
Description
Possible solutions
Arrow function syntax
// Irregular
() =*> ...
// not the same order as in regular generator functions
() =>* ...
// also wrong order
() *=> ...
// ASI hazard
*() => ...
Introduce new generator keyword for both function and arrow function
generator function() {}
const foo = async generator function() {};
class Foo {
x = 1
// No more ASI hazard!
generator foo() {}
}
Previous discussions https://github.com/tc39/proposals/issues/216
Metadata
Metadata
Assignees
Labels
No labels