mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
14 lines
218 B
JavaScript
14 lines
218 B
JavaScript
class Cl {
|
|
#privateField = 0;
|
|
|
|
set #privateFieldValue(newValue) {
|
|
this.#privateField = newValue;
|
|
}
|
|
|
|
constructor() {
|
|
expect(() => this.#privateFieldValue).toThrow(TypeError);
|
|
}
|
|
}
|
|
|
|
const cl = new Cl();
|