Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/accessors-privateFieldsAsProperties/get-only-setter/exec.js

raw
1 class Cl {
2 #privateField = 0;
3
4 set #privateFieldValue(newValue) {
5 this.#privateField = newValue;
6 }
7
8 constructor() {
9 expect(this.#privateFieldValue).toBeUndefined();
10 }
11 }
12
13 const cl = new Cl();