Skip to content

Lexer: SyntaxError: unexpected nonexistent ( #4283

@1j01

Description

@1j01

When missing a comma in an object literal, you get SyntaxError: unexpected ( even though there's no parentheses.

console.log {search, users, contacts users_to_display}

From what I know of how CoffeeScript works, it's inserting a parenthesis for a function call to contacts making for the terrible error message.
(So I ended up looking for an extra parenthesis somewhere in some file.)

This is fixed in redux. Is there a path for fixing problems like this that come from the rewriter?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions