Files

11 lines
161 B
JavaScript

class A {
static #method() {}
run() {
expect(() => A.#method = 2).toThrow(TypeError);
expect(() => ([A.#method] = [2])).toThrow(TypeError);
}
}