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

Syntax errors in JS code do not get reported to end-user #9

Open
jeremysinger opened this issue Mar 2, 2022 · 1 comment
Open

Syntax errors in JS code do not get reported to end-user #9

jeremysinger opened this issue Mar 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jeremysinger
Copy link
Owner

Sometimes, syntax errors in the code window are silently suppressed when the user clicks 'Run code' - so the user doesn't know that an error has occurred. Instead there is no output. We need to report syntax errors (and maybe helpful hints) to the user.

This may be complicated by the user of the acorn parser to preprocess the code before we eval it.

@jeremysinger jeremysinger added the bug Something isn't working label Mar 2, 2022
@jeremysinger
Copy link
Owner Author

some error messages are reported ... others fail silently.

The worst one is when a variable is used without being defined - these fail silently and this is a common problem.

We need more obvious error reporting for the learners

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant