1 2 3 4 5 6 7 8 9
class instance extends null { constructor() { super(); } } assertThrowsInstanceOf(() => new instance(), TypeError); assertThrowsInstanceOf(() => new class extends null { }(), TypeError); if (typeof reportCompare === 'function') reportCompare(0,0,"OK");