This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
66fe2f78fa
prettier
/
tests
/
empty_statement
/
jsfmt.spec.js
2 lines
21 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Make sure empty for loops generate valid code (#224) ```js for (;;); function f() {} ``` The `;` was dropped meaning that the line right after was executed within the for loop which is not correct. I tried to return `;` but it looks like ```js for (;;) ; ``` which looks super weird so I ended up printing `{}` which looks like ```js for (;;) {} ```
2017-01-16 20:54:39 +03:00
run
_spec
(
_
_dirname
)
;