Skip to content

Dump offending code when acorn complains about syntax error #2058

Description

@mk-pmb

While I think that acorn should also do its part in helping (and I requested it shall), I think it's browserify's duty to dump the entire code it tried to feed into acorn whenever acorn complains about syntax error.
Example test case: This actions run.
SyntaxError: Unexpected token (20:47) albeit line 20 of that file is only 28 bytes long.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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