mirror of
https://github.com/github/codeql.git
synced 2026-01-05 02:30:19 +01:00
JavaScript: Move support for optional catch to ES2019.
This commit is contained in:
@@ -385,7 +385,7 @@ public class ESNextParser extends JSXParser {
|
||||
param = this.parseBindingAtom();
|
||||
this.checkLVal(param, true, null);
|
||||
this.expect(TokenType.parenR);
|
||||
} else if (!options.esnext()) {
|
||||
} else if (options.ecmaVersion() < 10) {
|
||||
this.unexpected();
|
||||
}
|
||||
BlockStatement catchBody = this.parseBlock(false);
|
||||
|
||||
Reference in New Issue
Block a user