> Le 7 mai 2015 à 10:25, Axel Rauschmayer <[email protected]> a écrit :
> 
> Is this the best way to use `extends null`?
> 
> ```js
> class C extends null {
>     constructor() {
>         let _this = Object.create(C.prototype);
>         return _this;
>     }
> }
> ```

No, you should say: `Object.create(new.target.prototype)`

—Claude

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to