fix(babel-parser): Fix end of range of SequenceExpression (#13731)
This commit is contained in:
@@ -1735,8 +1735,7 @@ export default class ExpressionParser extends LValParser {
|
||||
val.expressions = exprList;
|
||||
// finish node at current location so it can pick up comments after `)`
|
||||
this.finishNode(val, "SequenceExpression");
|
||||
val.end = innerEndPos;
|
||||
val.loc.end = innerEndLoc;
|
||||
this.resetEndLocation(val, innerEndPos, innerEndLoc);
|
||||
} else {
|
||||
val = exprList[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user