Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Dump offending code when acorn complains about syntax error #2058

@mk-pmb

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.

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