[parser] Allow optional async methods (#10582)
* Add parsePostMemberNameModifiers to aync method * Add test
This commit is contained in:
@@ -1399,6 +1399,7 @@ export default class StatementParser extends ExpressionParser {
|
||||
method.kind = "method";
|
||||
// The so-called parsed name would have been "async": get the real name.
|
||||
this.parseClassPropertyName(method);
|
||||
this.parsePostMemberNameModifiers(publicMember);
|
||||
|
||||
if (method.key.type === "PrivateName") {
|
||||
// private async method
|
||||
|
||||
Reference in New Issue
Block a user