millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

object getter and setter are not formatted properly if using esprima@2.1 #265

Closed millermedeiros closed 9 years ago

millermedeiros commented 9 years ago

the current tests fails after running npm update rocambole esprima.. same tests worked with esprima@2.0

expected:

var o = {
  a: 0,
  get b() {},
  set c(x) {}
};

actual:

var o = {
  a: 0,
  get b () {},
  set c (x) {}
};

see also #264

millermedeiros commented 9 years ago

probably caused because of https://github.com/jquery/esprima/issues/1029