Skip to content

Commit 621e2e7

Browse files
committed
JS: Don't try to parse "get=" as a method prop
1 parent eb8046d commit 621e2e7

File tree

2 files changed

+513
-32
lines changed

2 files changed

+513
-32
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,6 +2069,7 @@ protected void parsePropertyValue(PropertyInfo pi, DestructuringErrors refDestru
20692069
pi.value = this.parseMethod(pi.isGenerator, pi.isAsync);
20702070
} else if (this.options.ecmaVersion() >= 5
20712071
&& !pi.computed
2072+
&& !pi.isPattern
20722073
&& pi.key instanceof Identifier
20732074
&& (((Identifier) pi.key).getName().equals("get")
20742075
|| ((Identifier) pi.key).getName().equals("set"))

0 commit comments

Comments
 (0)