add support for async generator concise methods - fixes #2603

This commit is contained in:
Sebastian McKenzie
2015-11-03 11:19:04 +00:00
parent 72b6e42b34
commit d8b17a9eaa
6 changed files with 802 additions and 0 deletions

View File

@@ -688,6 +688,7 @@ pp.parseObj = function (isPattern, refShorthandDefaultPos) {
prop.key = asyncId;
} else {
isAsync = true;
if (this.hasPlugin("asyncGenerators")) isGenerator = this.eat(tt.star);
this.parsePropertyName(prop);
}
} else {