haikuwebkit/JSTests/es6/class_extends_expressions.js

13 lines
173 B
JavaScript

function test() {
var B;
class C extends (B = class {}) {}
return new C() instanceof B
&& B.isPrototypeOf(C);
}
if (!test())
throw new Error("Test failed");