fix: correctly set innerEndPos in CoverParenthesizedExpressionAndArrowParameterList (#11847)
This commit is contained in:
@@ -1371,8 +1371,8 @@ export default class ExpressionParser extends LValParser {
|
||||
}
|
||||
}
|
||||
|
||||
const innerEndPos = this.state.start;
|
||||
const innerEndLoc = this.state.startLoc;
|
||||
const innerEndPos = this.state.lastTokEnd;
|
||||
const innerEndLoc = this.state.lastTokEndLoc;
|
||||
this.expect(tt.parenR);
|
||||
|
||||
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
||||
|
||||
Reference in New Issue
Block a user