Is this the best way to use `extends null`?
```js
class C extends null {
constructor() {
let _this = Object.create(C.prototype);
return _this;
}
}
```
You can’t use `this`, because it can’t be initialized via a super-constructor
call: the super-constructor is `Function.prototype` (which can’t be
constructor-called).
--
Dr. Axel Rauschmayer
[email protected]
rauschma.de
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss