Skip to content

Reporting of JavaScript syntax errors #415

Closed
@nene

Description

When parser detects invalid JavaScript, JSDuck throws an error like:

undefined method `range' for nil:NilClass

which is far from descriptive of the actual cause. Instead JSDuck should say "invalid JavaScript" and preferably point you to the place in file where the problem lies.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions