Closed felixhao28 closed 8 years ago
Esformatter formats this (expected)
const a = { g() { switch (x) { case 1: ret = 0; break; } }, f() {} };
into this:
I think it is a bug because if f() {} is removed then it works as expected.
f() {}
thanks for reporting the bug! we did not have any special code to handle the method syntax!
Esformatter formats this (expected)
into this:
I think it is a bug because if
f() {}
is removed then it works as expected.