700 B
700 B
Stabilize comment around break and continue in no-semi mode (#7161 by @thorn0, @fisker)
// Input
for (;;) {
if (condition) {
break; // breaking comment
(possibleArray || []).sort()
}
}
// Prettier stable (--no-semi, first format)
for (;;) {
if (condition) {
break // breaking comment
;(possibleArray || []).sort()
}
}
// Prettier stable (--no-semi, second format)
for (;;) {
if (condition) {
break // breaking comment
;(possibleArray || []).sort()
}
}
// Prettier main (--no-semi, both first and second format)
for (;;) {
if (condition) {
break; // breaking comment
(possibleArray || []).sort();
}
}