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
7 lines
93 B
JavaScript
7 lines
93 B
JavaScript
function foo() {
|
|
return {
|
|
// this comment causes the problem
|
|
bar: baz() + 1
|
|
};
|
|
}
|