Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 323760b

Browse files
committed
Merge branch 'ts-2.5' of github.com:eslint/typescript-eslint-parser into ts-2.5
2 parents 01c34f4 + c7a5714 commit 323760b

File tree

5 files changed

+485
-2
lines changed

5 files changed

+485
-2
lines changed

lib/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ module.exports = function convert(config) {
513513
case SyntaxKind.CatchClause:
514514
Object.assign(result, {
515515
type: AST_NODE_TYPES.CatchClause,
516-
param: convertChild(node.variableDeclaration.name),
516+
param: node.variableDeclaration ? convertChild(node.variableDeclaration.name) : null,
517517
body: convertChild(node.block)
518518
});
519519
break;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"npm-license": "0.3.3",
3131
"shelljs": "0.7.7",
3232
"shelljs-nodecli": "0.1.1",
33-
"typescript": "~2.4.0"
33+
"typescript": "~2.5.1"
3434
},
3535
"keywords": [
3636
"ast",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
try {} catch {} finally {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
try {} catch {}

0 commit comments

Comments
 (0)