Skip to content

Uncaught exceptions in lib/jsdoc-helpers.js #7

@ronkorving

Description

@ronkorving

I'm using JSDoc3 (is that compatible?) and am getting uncaught exceptions on a fairly large codebase. I'm not sure how to detect which file and jsdoc entry in my code is causing the exceptions however. In any case, the nature of them is as follows:

TypeError: Cannot call method 'toLowerCase' of undefined
    at Object.jsDocMatchType [as match] (/myproject/node_modules/jscs-jsdoc/lib/jsdoc-helpers.js:129:29)

If on that line, I detect that and continue the loop iteration (effectively skipping these errors), I get the next uncaught error:

TypeError: Cannot read property 'type' of null
    at Object.jsDocMatchType [as match] (/myproject/node_modules/jscs-jsdoc/lib/jsdoc-helpers.js:135:32)

Please note that the line number there is skewed by a few because of the continue statement I injected above it. The error is about the usage of if (!argument.value.type) {.

Is there anything I can do to figure out what chunk of JSDoc caused this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions