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