Skip to content

Commit d2af9fd

Browse files
committed
JS: Fix parsing.
1 parent e4e4bec commit d2af9fd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎javascript/extractor/src/com/semmle/jcorn/Parser.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,9 @@ protected void parsePropertyValue(PropertyInfo pi) {
20172017
&& pi.key instanceof Identifier
20182018
&& (((Identifier) pi.key).getName().equals("get")
20192019
|| ((Identifier) pi.key).getName().equals("set"))
2020-
&& (this.type != TokenType.comma && this.type != TokenType.braceR)) {
2020+
&& (this.type != TokenType.comma
2021+
&& this.type != TokenType.braceR
2022+
&& this.type != TokenType.eq)) {
20212023
if (pi.isGenerator || pi.isAsync || pi.isPattern) this.unexpected();
20222024
pi.kind = ((Identifier) pi.key).getName();
20232025
PropertyInfo pi2 = new PropertyInfo(false, false, this.startLoc);

0 commit comments

Comments
 (0)