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

Commit c7a5714

Browse files
azzJamesHenry
authored andcommitted
New: Support TypeScript 2.5 (fixes #368) (#369)
1 parent d67ee6c commit c7a5714

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
@@ -497,7 +497,7 @@ module.exports = function convert(config) {
497497
case SyntaxKind.CatchClause:
498498
Object.assign(result, {
499499
type: AST_NODE_TYPES.CatchClause,
500-
param: convertChild(node.variableDeclaration.name),
500+
param: node.variableDeclaration ? convertChild(node.variableDeclaration.name) : null,
501501
body: convertChild(node.block)
502502
});
503503
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)