• @OP, this probably won't help you directly.

    I have done some reading about super lately. Here's a summary:

    • functions created with funcName() syntax (as in class { }) have a hidden attribute pointing to their "HomeObject" - C.prototype and B.prototype in the example here.
      • also true in an object-literal like { foo() { } }, as a pedantic side note
    • super is (should be) Object.prototypeOf(HomeObject)
    • in constructor, super() is shorthand for super.constructor()

    It looks like the call to super at line 7 may be resolving super as Object.prototypeOf(this) instead.

    https://2ality.com/2011/11/super-references.html

    HTH someone

About

Avatar for user115787 @user115787 started