Refactor [In] production parameter tracking (#11930)

* refactor: track [In] parameter in prodParam

* Apply suggestions from code review
This commit is contained in:
Huáng Jùnliàng
2020-08-10 07:32:38 -04:00
committed by GitHub
parent fccf31aca6
commit 4bb1e164da
7 changed files with 135 additions and 106 deletions

View File

@@ -356,7 +356,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
const node = this.startNode();
if (this.eat(tt.braceL)) {
this.expect(tt.ellipsis);
node.argument = this.parseMaybeAssign();
node.argument = this.parseMaybeAssignAllowIn();
this.expect(tt.braceR);
return this.finishNode(node, "JSXSpreadAttribute");
}