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

When there's a syntax failure, the compiled code should be a string. #258

Closed
wants to merge 2 commits into from

Conversation

Spittal
Copy link
Contributor

@Spittal Spittal commented Apr 4, 2023

I've encountered a bug where when there's a syntax error for example { {something} hello Then the returning compilation is

"key": { {something hello Which results in a syntax error in the browser. SyntaxError: Unexpected token '{'

This can be addressed by always returning a string value of the message if there was an error. A simple solution that when I tried in a large scale project worked very well!

I also fixed a typo of ivalid to invalid

Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

Could you fix the github actions error, please? 🙏

@kazupon
Copy link
Member

kazupon commented May 26, 2023

@Spittal
Sorry for late my reply
Your PR is merged on #270

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants