fix: add optional: false to chained optional call expression (#11814)
This commit is contained in:
@@ -660,8 +660,10 @@ export default class ExpressionParser extends LValParser {
|
||||
let node = this.startNodeAt(startPos, startLoc);
|
||||
node.callee = base;
|
||||
|
||||
if (state.optionalChainMember) {
|
||||
node.optional = optional;
|
||||
}
|
||||
if (optional) {
|
||||
node.optional = true;
|
||||
node.arguments = this.parseCallExpressionArguments(tt.parenR, false);
|
||||
} else {
|
||||
node.arguments = this.parseCallExpressionArguments(
|
||||
|
||||
Reference in New Issue
Block a user