Skip to content

Improved error message when using promise keyword inapropriately #57

@adiel

Description

@adiel

Sometimes I've used the name promise for a variable forgetting it's a keyword, e.g:

promise = getStuffAsync(...)

//later
promise!

The pogo compiler says "TypeError: Cannot read property '0' of undefined" with no trace of where the problem is. Takes me a while to remember what this means.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions