fix: reset EndLocation for catch param (#11943)

This commit is contained in:
Huáng Jùnliàng
2020-08-10 17:06:34 -04:00
committed by GitHub
parent a3893129ec
commit 008fe25ae2
2 changed files with 7 additions and 6 deletions

View File

@@ -2733,6 +2733,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
if (type) {
param.typeAnnotation = type;
this.resetEndLocation(param);
}
return param;