title: ReferenceError: Cannot access 'obj' before initialization
body: <p>I have this object:</p>
  
  <pre class="lang-js prettyprint-override"><code>const obj = {
    thing: 5,
    layer: {
      otherThing: obj.thing - 2
    }
  }
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>ReferenceError: Cannot access 'obj' before initialization
  </code></pre>
  
  <p>I tried to use <code>this</code> but it didn't work as expected.</p>