1 2 3 4 5 6 7 8 9 10 11 12
class A { "constructor"() { return {}; } } assertEq(new A() instanceof A, false); class B extends class { } { "constructor"() { return {}; } } assertEq(new B() instanceof B, false); if (typeof reportCompare === 'function') reportCompare(0,0,"OK");