Skip to content
This repository was archived by the owner on May 17, 2025. It is now read-only.
This repository was archived by the owner on May 17, 2025. It is now read-only.

confusing error message for compound assignment of undeclared variable #208

@mminea

Description

@mminea

Writing x += 0; produces the uninformative error message
Line 0: unknown: path.node.loc is undefined
Writing x = 0; instead produces the friendly
Line 1: You must declare variable 'x' before assigning a value to it.

Metadata

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