* fix: support static private field destructure set ([C.#p] = [0]) * 🚧 * fix: add compatibility warning for older @babel/helper versions * refactor: extract common routines among classPrivateFiled helpers * More 🚧
11 lines
161 B
JavaScript
11 lines
161 B
JavaScript
class A {
|
|
static #method() {}
|
|
|
|
run() {
|
|
expect(() => A.#method = 2).toThrow(TypeError);
|
|
expect(() => ([A.#method] = [2])).toThrow(TypeError);
|
|
}
|
|
}
|
|
|
|
|