* 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 🚧
13 lines
194 B
JavaScript
13 lines
194 B
JavaScript
class Cl {
|
|
#privateField = 0;
|
|
|
|
get #privateFieldValue() {
|
|
return this.#privateField;
|
|
}
|
|
|
|
constructor() {
|
|
this.#privateFieldValue = 1;
|
|
([this.#privateFieldValue] = [1]);
|
|
}
|
|
}
|