mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
16 lines
227 B
JavaScript
16 lines
227 B
JavaScript
class Cl {
|
|
static #privateField = 0;
|
|
|
|
static get #privateFieldValue() {
|
|
return this.#privateField;
|
|
}
|
|
|
|
constructor() {
|
|
Cl.#privateFieldValue = 1;
|
|
([Cl.#privateFieldValue] = [1]);
|
|
}
|
|
}
|
|
|
|
const cl = new Cl();
|
|
|