title: Is there a way to use 'this' in the super() constructor?
body: <p>I am looking at another person's code and in the code, they have code that is essentially this:</p>
  
  <pre><code>class foo extends bar {
      constructor() {
          super(param1, param2, new certainObject(this, otherParams));
      }
  }
  </code></pre>
  
  <p>The problem I am having with this code is that it says gives the error that <code>'super' must be called before accessing 'this' in the constructor of a derived class</code>.</p>
  
  <p>I am wondering: is there was a way to use <code>this</code> in the call to <code>super()</code> or am I going to have to completely restructure the code?</p>