With the current master, the compiler crashes when the @type JSDoc annotation of a variable is malformed, e.g. in the following (shortened) example from lodash:
/**
* Checks if `value` is classified as an `Array` object.
*
* @type Function
*/
var isArray = Array.isArray;
This is in the statement return annotation.typeExpression.type;;
This compiles fine if Function above is replaced with {Function}.
It seems this is similar to #6709 and annotation.typeExpression needs checking too.
I could submit a PR, but I understand from CONTRIBUTING.md that the issue needs approval first?
With the current master, the compiler crashes when the
@typeJSDoc annotation of a variable is malformed, e.g. in the following (shortened) example from lodash:This is in the statement
return annotation.typeExpression.type;;This compiles fine if
Functionabove is replaced with{Function}.It seems this is similar to #6709 and
annotation.typeExpressionneeds checking too.I could submit a PR, but I understand from CONTRIBUTING.md that the issue needs approval first?