Core JavaScript 1.5 Guide:Creating New Objects:Defining Getters and Setters - MDC
o = {
  a:7,
  get b() { return this.a+1; },
  set c(x) { this.a = x/2; }
};