mirror of
https://github.com/github/codeql.git
synced 2026-01-03 17:50:19 +01:00
JS: Don't try to parse "get=" as a method prop
This commit is contained in:
@@ -2069,6 +2069,7 @@ public class Parser {
|
||||
pi.value = this.parseMethod(pi.isGenerator, pi.isAsync);
|
||||
} else if (this.options.ecmaVersion() >= 5
|
||||
&& !pi.computed
|
||||
&& !pi.isPattern
|
||||
&& pi.key instanceof Identifier
|
||||
&& (((Identifier) pi.key).getName().equals("get")
|
||||
|| ((Identifier) pi.key).getName().equals("set"))
|
||||
|
||||
Reference in New Issue
Block a user