Files
test-repo/tests/object-prop-break-in/comment.js
T
Christopher Chedeau 76e599ec97 Avoid unneeded parenthesis for colon with comments (#673)
Because the group was too high up, the comment would be taken into consideration to determine the size and it would break and add parenthesis. Adding a group where we actually want the ifBreak seems to be passing all the existing tests and fixes this edge case.

Fixes #655
2017-02-13 09:55:09 -05:00

7 lines
93 B
JavaScript

function foo() {
return {
// this comment causes the problem
bar: baz() + 1
};
}