Skip to content
  • Florian Müllner's avatar
    legacy: Allow ES6 classes to inherit from abstract Lang.Class class · cf551d9d
    Florian Müllner authored
    Currently Lang.Class uses a distinct constructor for abstract classes,
    which just throws when instantiated. This works as Lang.Class classes
    chain up to _init rather than the real constructor, which isn't the
    case for ES6 classes. In order to allow ES6 classes to directly inherit
    from an abstract Lang.Class class, check whether an abstract class
    has been instantiated directly inside the regular constructor.
    cf551d9d