You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 */varisArray=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?
The text was updated successfully, but these errors were encountered:
FWIW in the future if you find a crashing bug, we'll pretty much always accept PRs on those -- no need to wait for any action. But hopefully that doesn't happen again 😉
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: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?
The text was updated successfully, but these errors were encountered: