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