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
I got syntax error after js-beautify.
The code looked like this before beautification:
function* gen() { yield function() {}; }
No change.
The code actually looked like this after beautification:
% node test.js // no error % js-beautify -r test.js beautified test.js % node test.js test.js:4 function() {}; ^ SyntaxError: Unexpected token (
The text was updated successfully, but these errors were encountered:
Fixed yield function spacing
230dc43
Fixes beautifier#1206
453bdc9
No branches or pull requests
Description
I got syntax error after js-beautify.
Input
The code looked like this before beautification:
Expected Output
No change.
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
The text was updated successfully, but these errors were encountered: