mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
30 lines
409 B
JavaScript
30 lines
409 B
JavaScript
expect(() => {
|
|
class C {
|
|
static #_ = new C;
|
|
static #p;
|
|
constructor() {
|
|
C.#p;
|
|
}
|
|
}
|
|
}).toThrow(TypeError);
|
|
|
|
expect(() => {
|
|
class C {
|
|
static #_ = new C;
|
|
static #p;
|
|
constructor() {
|
|
C.#p = 0;
|
|
}
|
|
}
|
|
}).toThrow(TypeError);
|
|
|
|
expect(() => {
|
|
class C {
|
|
static #_ = new C;
|
|
static #p;
|
|
constructor() {
|
|
for (C.#p of [0]);
|
|
}
|
|
}
|
|
}).toThrow(TypeError);
|