title: Typeof defeated by variable initializer
body: <p>This code prints "undefined", as expected:</p>
  
  <pre><code>console.log(foo());
  
  function foo() {
    return typeof a;
  }
  </code></pre>
  
  <p>This one crashes with a "a is not defined" error:</p>
  
  <pre><code>const a = foo();
  
  function foo() {
    return typeof a;
  }
  </code></pre>
  
  <p>Is that a bug of V8 or an expected behavior?</p>