class extends null was reverted by ECMAScript in tc39/ecma262#781 ( tc39/ecma262@c57ef95 ) and is still broken.
The kata is abnormal since it doesn't have a solution in the test itself.
So, the question is whether we should have that test for class extends null?
However, I found a possible solution thanks to devdocs.io ( which had a previous version of the MDN Web Docs; revision ) :
class NullClass extends null {}
assert.equal(Object.getPrototypeOf(NullClass), Function.prototype);
class extends nullwas reverted by ECMAScript in tc39/ecma262#781 ( tc39/ecma262@c57ef95 ) and is still broken.The kata is abnormal since it doesn't have a solution in the test itself.
So, the question is whether we should have that test for
class extends null?However, I found a possible solution thanks to devdocs.io ( which had a previous version of the MDN Web Docs; revision ) :