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

Better error message on invalid JS #25

Open
lifthrasiir opened this issue Sep 24, 2021 · 0 comments
Open

Better error message on invalid JS #25

lifthrasiir opened this issue Sep 24, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request js preprocess
Milestone

Comments

@lifthrasiir
Copy link
Owner

A syntax error (or possibly unsupported future syntax like #23) currently throws a fixed exception. It should instead point to the context and line number. The column number is also good to have, but the accurate calculation of the column number is much harder than it seems (tab expansion, surrogate pairs, East Asian width etc).

@lifthrasiir lifthrasiir added enhancement New feature or request js preprocess labels Sep 24, 2021
@lifthrasiir lifthrasiir self-assigned this Sep 24, 2021
@lifthrasiir lifthrasiir added this to the 2.2.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request js preprocess
Projects
None yet
Development

No branches or pull requests

1 participant