Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump offending code when acorn complains about syntax error #2058

Open
mk-pmb opened this issue Apr 15, 2023 · 4 comments
Open

Dump offending code when acorn complains about syntax error #2058

mk-pmb opened this issue Apr 15, 2023 · 4 comments

Comments

@mk-pmb
Copy link

mk-pmb commented Apr 15, 2023

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.

@mikixing

This comment was marked as spam.

@nohaaaaa18

This comment was marked as spam.

@nohaaaaa18

This comment was marked as spam.

@nohaaaaa18

This comment was marked as spam.

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

No branches or pull requests

3 participants