title: Self-references in object literals / initializers
body: <p>Is there any way to get something like the following to work in JavaScript?</p>
  
  <pre><code>var foo = {
      a: 5,
      b: 6,
      c: this.a + this.b  // Doesn't work
  };
  </code></pre>
  
  <p>In the current form, this code obviously throws a reference error since <code>this</code> doesn't refer to <code>foo</code>. But <em>is</em> there any way to have values in an object literal's properties depend on other properties declared earlier?</p>