title: JS (intermediate value).g is not a function intermediate value is not a function when using super operator
body: <p>I am trying to call super from an anonymous function in JS but I get the following error:</p>
  <pre><code>Uncaught TypeError: (intermediate value).g is not a function
  </code></pre>
  <p>What's wrong with the following code?</p>
  <pre class="lang-js prettyprint-override"><code>class A {
      m() {
        var f = () =&gt; {
            super.g();
        };
        return (() =&gt; f());
      }
  
      g() {
          console.log('g');
      }
  }
  
  (new A().m())() // Expected console output: g
  </code></pre>
  <p>Thank you!</p>