Don't crash when return type jsdoc tag is malformed

Fixes #6662
This commit is contained in:
Ryan Cavanaugh
2016-01-28 15:48:18 -08:00
parent 2ef6f13532
commit 5a845bf0fc
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
/// <reference path="fourslash.ts" />
// @allowNonTsExtensions: true
// @Filename: file.js
//// /**
//// * This is a very cool function that is very nice.
//// * @returns something
//// */
//// function a1() {
//// try {
//// throw new Error('x');
//// } catch (x) { x--; }
//// return 23;
//// }
////
//// x - /**/a1()
goTo.marker();
verify.quickInfoExists();