(() => {
// a.js
var A = class {
constructor() {
console.log("success");
}
};
// entry.js
var A2 = class {
static C = class A extends A {
};
};
new A2.C();
})();
VM15:11 Uncaught ReferenceError: Cannot access 'A' before initialization
at <static_initializer> (<anonymous>:11:32)
at <anonymous>:10:12
at <anonymous>:15:3
Input
a.js:
entry.js:
Playground: link
Expected
Actual