>
>
> Interesting. I have never seen this pattern and don’t see what it could be
> good for. Thus, a dynamic error at class definition time sounds good to me.
>

The purpose would be defining a class whose instances don't have
Object.prototype on their prototype chain.  If "extends null" doesn't work,
then I think you'd have to do something like this to achieve the same?

    function NullBase() {}
    NullBase.prototype = Object.create(null);

    class C extends NullBase {}
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to