[legacy decorators] Allow decorating generator methods (#9912)
* [legacy decorators] Allow decorating generator methods
The old proposal used LeftHandSideExpression (instead of
AssignmentExpression) to satisfy this usecase:
e240cbc91a
* Update flow whitelist
This commit is contained in:
@@ -390,7 +390,7 @@ export default class StatementParser extends ExpressionParser {
|
||||
node.expression = this.parseMaybeDecoratorArguments(expr);
|
||||
this.state.decoratorStack.pop();
|
||||
} else {
|
||||
node.expression = this.parseMaybeAssign();
|
||||
node.expression = this.parseExprSubscripts();
|
||||
}
|
||||
return this.finishNode(node, "Decorator");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user