Can I use ES6’s arrow function syntax with generators?
You can’t. Sorry.
According to MDN
The
function*statement (functionkeyword followed by an asterisk) defines a generator function.
From a spec document (my emphasis):
The function syntax is extended to add an optional
*token:
FunctionDeclaration: "function" "*"? Identifier "(" FormalParameterList? ")"
"{" FunctionBody "}"