We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following JS code:
if (true) { const CMS = 'Drupal'; }
parses to: if (true) const CMS = 'Drupal';
if (true) const CMS = 'Drupal';
Which result in: SyntaxError: Unexpected token 'const'
SyntaxError: Unexpected token 'const'
The text was updated successfully, but these errors were encountered:
3f57998
The solution was to add the brackets in that case, the problem was also present of for and while statements, now it's fixed. Thank you.
Sorry, something went wrong.
This was quick! Thanks!
No branches or pull requests
The following JS code:
parses to:
if (true) const CMS = 'Drupal';
Which result in:
SyntaxError: Unexpected token 'const'
The text was updated successfully, but these errors were encountered: