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:
Vedant Roy
2020-01-19 18:33:09 -05:00
committed by Nicolò Ribaudo
parent 85ddc297c2
commit 341964bd4e
5 changed files with 557 additions and 4 deletions

View File

@@ -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);
}