We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d93d68d commit 9ec366cCopy full SHA for 9ec366c
javascript/extractor/src/com/semmle/jcorn/ESNextParser.java
@@ -385,7 +385,7 @@ protected CatchClause parseCatchClause(Position startLoc) {
385
param = this.parseBindingAtom();
386
this.checkLVal(param, true, null);
387
this.expect(TokenType.parenR);
388
- } else if (!options.esnext()) {
+ } else if (options.ecmaVersion() < 10) {
389
this.unexpected();
390
}
391
BlockStatement catchBody = this.parseBlock(false);
0 commit comments