* 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 🚧
14 lines
174 B
JavaScript
14 lines
174 B
JavaScript
class A {
|
|
counter = 0;
|
|
#method() {}
|
|
self() {
|
|
this.counter++;
|
|
return this;
|
|
}
|
|
|
|
constructor() {
|
|
this.self().#method = 2;
|
|
([this.#method] = [2]);
|
|
}
|
|
}
|