fix: properly parse member expression after property initializ… (#11031)
Fixes issue 10989 where the only the identifier in a member expression that is the value of an object property would be parsed. Removing checkExpressionErrors in parseExprSubscripts results in the subscript also being parsed.
This commit is contained in:
committed by
Nicolò Ribaudo
parent
85ddc297c2
commit
341964bd4e
@@ -532,10 +532,6 @@ export default class ExpressionParser extends LValParser {
|
||||
return expr;
|
||||
}
|
||||
|
||||
if (this.checkExpressionErrors(refExpressionErrors, false)) {
|
||||
return expr;
|
||||
}
|
||||
|
||||
return this.parseSubscripts(expr, startPos, startLoc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user