block comment breaks the meaning of the code #59

Closed
einars opened this Issue Aug 4, 2011 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

einars commented Aug 4, 2011

As reported by Ari Entlich,

return /* comment */ {
a: 5,
b: 10
};

Gets beautified to:

return /* comment */
{
a: 5,
b: 10
};

Which has a different meaning. This also happens when the return is replaced with a variable assignment or something similar.

bitwiseman closed this Mar 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment